pub struct EmptyMessage<B>(/* private fields */);Expand description
Empty message.
Trait Implementations§
Source§impl<B: Clone> Clone for EmptyMessage<B>
impl<B: Clone> Clone for EmptyMessage<B>
impl<B: Copy> Copy for EmptyMessage<B>
Source§impl<B: Debug> Debug for EmptyMessage<B>
impl<B: Debug> Debug for EmptyMessage<B>
Source§impl<B> Default for EmptyMessage<B>
impl<B> Default for EmptyMessage<B>
impl<B: Eq> Eq for EmptyMessage<B>
Source§impl<B: SplitByteSlice> MessageBody for EmptyMessage<B>
impl<B: SplitByteSlice> MessageBody for EmptyMessage<B>
Source§fn parse(bytes: B) -> ParseResult<Self>
fn parse(bytes: B) -> ParseResult<Self>
Parse the MessageBody from the provided bytes.
Source§impl<B: PartialEq> PartialEq for EmptyMessage<B>
impl<B: PartialEq> PartialEq for EmptyMessage<B>
impl<B: PartialEq> StructuralPartialEq for EmptyMessage<B>
Auto Trait Implementations§
impl<B> Freeze for EmptyMessage<B>where
PhantomData<B>: Freeze,
impl<B> RefUnwindSafe for EmptyMessage<B>where
PhantomData<B>: RefUnwindSafe,
impl<B> Send for EmptyMessage<B>where
PhantomData<B>: Send,
impl<B> Sync for EmptyMessage<B>where
PhantomData<B>: Sync,
impl<B> Unpin for EmptyMessage<B>where
PhantomData<B>: Unpin,
impl<B> UnsafeUnpin for EmptyMessage<B>where
PhantomData<B>: UnsafeUnpin,
impl<B> UnwindSafe for EmptyMessage<B>where
PhantomData<B>: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more