pub struct WindowCommandBus { /* private fields */ }Expand description
宿主与窗口之间共享的命令队列。
Arc<Mutex<..>> 只为满足类型上的 Send(命令都在 UI 线程产生与消费),
不需要真正的并发。
Implementations§
Trait Implementations§
Source§impl Clone for WindowCommandBus
impl Clone for WindowCommandBus
Auto Trait Implementations§
impl Freeze for WindowCommandBus
impl RefUnwindSafe for WindowCommandBus
impl Send for WindowCommandBus
impl Sync for WindowCommandBus
impl Unpin for WindowCommandBus
impl UnsafeUnpin for WindowCommandBus
impl UnwindSafe for WindowCommandBus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more