#[non_exhaustive]pub enum Inbound {
Ack(Ack),
Event(Box<MessageEvent>),
}Expand description
One message read from a host.
Sorted on command: an acknowledgement always carries one and an event
never does. Sorting on code would be wrong, since both types have a field
with that name meaning different things.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ack(Ack)
The answer to a command somebody sent.
Event(Box<MessageEvent>)
Something a run reported, unprompted.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Inbound
Auto Trait Implementations§
impl Freeze for Inbound
impl RefUnwindSafe for Inbound
impl Send for Inbound
impl Sync for Inbound
impl Unpin for Inbound
impl UnsafeUnpin for Inbound
impl UnwindSafe for Inbound
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