pub struct ManagerInput { /* private fields */ }Expand description
Cheap, cloneable, Send + Sync handle used to feed InputEvents into the manager’s run
loop.
Dropping the last handle stops the loop (via InputEvent::Shutdown).
Implementations§
Source§impl ManagerInput
impl ManagerInput
Sourcepub fn send(&self, event: InputEvent) -> StreamResult<()>
pub fn send(&self, event: InputEvent) -> StreamResult<()>
Feeds an event to the manager’s run loop. Fails only if the loop has already stopped.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ManagerInput
impl RefUnwindSafe for ManagerInput
impl Send for ManagerInput
impl Sync for ManagerInput
impl Unpin for ManagerInput
impl UnsafeUnpin for ManagerInput
impl UnwindSafe for ManagerInput
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