transport is rolling

This commit is contained in:
🪞👃🪞 2024-05-31 23:43:12 +03:00
parent 1f928fba9d
commit 4fd208d53f
18 changed files with 540 additions and 498 deletions

View file

@ -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};