pub struct Inbox(/* private fields */);
Expand description
Receiving side of a Binding
.
Implementations§
Source§impl Inbox
impl Inbox
Sourcepub fn next_message(&mut self) -> Option<Message>
pub fn next_message(&mut self) -> Option<Message>
Get next incoming message.
Sourcepub fn next_event(&mut self) -> Option<(String, Event)>
pub fn next_event(&mut self) -> Option<(String, Event)>
Get the next event.
In contrast to Inbox::next_message
this discards any non-Event
messages which were received.
Auto Trait Implementations§
impl Freeze for Inbox
impl RefUnwindSafe for Inbox
impl Send for Inbox
impl Sync for Inbox
impl Unpin for Inbox
impl UnwindSafe for Inbox
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