Struct bttp::MsgReceived
source · pub struct MsgReceived<T> { /* private fields */ }
Expand description
A message tagged with the block path that it was sent from.
Implementations§
source§impl<T> MsgReceived<T>
impl<T> MsgReceived<T>
pub fn into_parts(self) -> (Arc<BlockPath>, T, Option<Replier>)
sourcepub fn needs_reply(&self) -> bool
pub fn needs_reply(&self) -> bool
Returns true if and only if this messages needs to be replied to.
sourcepub fn take_replier(&mut self) -> Option<Replier>
pub fn take_replier(&mut self) -> Option<Replier>
Takes the replier out of this struct and returns it, if it has not previously been returned.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for MsgReceived<T>
impl<T> Send for MsgReceived<T>where T: Send,
impl<T> Sync for MsgReceived<T>where T: Sync,
impl<T> Unpin for MsgReceived<T>where T: Unpin,
impl<T> !UnwindSafe for MsgReceived<T>
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