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§
Source§impl Clone for ManagerInput
impl Clone for ManagerInput
Source§fn clone(&self) -> ManagerInput
fn clone(&self) -> ManagerInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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