pub enum Msg {
Request(RequestEnvelope),
Response(ResponseEnvelope),
Error(Error),
}Expand description
Enumeration of message types
Variants§
Request(RequestEnvelope)
A request packet
Response(ResponseEnvelope)
A non-error response packet
Error(Error)
An error response packet
Implementations§
Trait Implementations§
impl StructuralPartialEq for Msg
Auto Trait Implementations§
impl Freeze for Msg
impl RefUnwindSafe for Msg
impl Send for Msg
impl Sync for Msg
impl Unpin for Msg
impl UnsafeUnpin for Msg
impl UnwindSafe for Msg
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