Enum GenericMessageOwned
pub enum GenericMessageOwned {}
Expand description
The owned type for GenericMessageType
.
Uninhabited because we never decode full messages. We decode the header and body separately, as we usually we don’t know the body’s type until after we’ve decoded the header.
Trait Implementations§
§impl<H, T, D> Decode<GenericMessageType<H, T>, D> for GenericMessageOwned
impl<H, T, D> Decode<GenericMessageType<H, T>, D> for GenericMessageOwned
§fn new_empty() -> GenericMessageOwned
fn new_empty() -> GenericMessageOwned
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.Auto Trait Implementations§
impl Freeze for GenericMessageOwned
impl RefUnwindSafe for GenericMessageOwned
impl Send for GenericMessageOwned
impl Sync for GenericMessageOwned
impl Unpin for GenericMessageOwned
impl UnwindSafe for GenericMessageOwned
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