mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
extract transport
This commit is contained in:
parent
449615eea8
commit
5a9ec0a63d
12 changed files with 178 additions and 182 deletions
|
|
@ -77,10 +77,6 @@ pub fn run <T> (state: Arc<RwLock<T>>) -> Usually<Arc<RwLock<T>>>
|
|||
terminal_teardown()?;
|
||||
Ok(state)
|
||||
}
|
||||
pub trait Run: Render + Handle + Send + Sync + Sized + 'static {
|
||||
fn run (self) -> Usually<Arc<RwLock<Self>>> { run(Arc::new(RwLock::new(self))) }
|
||||
}
|
||||
impl<T: Render + Handle + Send + Sync + Sized + 'static> Run for T {}
|
||||
|
||||
/// Set up panic hook
|
||||
pub fn panic_hook_setup () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue