mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
transport is rolling
This commit is contained in:
parent
1f928fba9d
commit
4fd208d53f
18 changed files with 540 additions and 498 deletions
|
|
@ -1,6 +1,13 @@
|
|||
pub use std::error::Error;
|
||||
pub use std::io::{stdout, Stdout, Write};
|
||||
pub use std::thread::spawn;
|
||||
pub use std::io::{
|
||||
stdout,
|
||||
Stdout,
|
||||
Write
|
||||
};
|
||||
pub use std::thread::{
|
||||
spawn,
|
||||
JoinHandle
|
||||
};
|
||||
pub use std::time::Duration;
|
||||
pub use std::sync::{
|
||||
Arc,
|
||||
|
|
@ -10,7 +17,7 @@ pub use std::sync::{
|
|||
};
|
||||
pub use crossterm::{
|
||||
QueueableCommand,
|
||||
event::{Event, KeyCode, KeyModifiers},
|
||||
event::{self, KeyCode, KeyModifiers},
|
||||
cursor::{self, MoveTo, Show, Hide},
|
||||
terminal::{self, Clear, ClearType},
|
||||
style::*,
|
||||
|
|
@ -36,11 +43,6 @@ pub use jack::{
|
|||
TransportState,
|
||||
TransportStatePosition
|
||||
};
|
||||
pub type Jack<N> = AsyncClient<
|
||||
N,
|
||||
ClosureProcessHandler<Box<dyn FnMut(&Client, &ProcessScope)-> Control + Send>>
|
||||
>;
|
||||
pub trait Exitable {
|
||||
fn exit (&mut self);
|
||||
fn exited (&self) -> bool;
|
||||
}
|
||||
pub type BoxedProcessHandler = Box<dyn FnMut(&Client, &ProcessScope)-> Control + Send>;
|
||||
pub type Jack<N> = AsyncClient<N, ClosureProcessHandler<BoxedProcessHandler>>;
|
||||
pub use crate::engine::{Exitable, Event};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue