pub struct MessageEncoder { /* private fields */ }Implementations§
Source§impl MessageEncoder
impl MessageEncoder
Sourcepub fn encode(&mut self, message: EncoderMessage<'_>) -> Vec<Bytes>
pub fn encode(&mut self, message: EncoderMessage<'_>) -> Vec<Bytes>
Encode an IPC message for writing to a byte stream.
The returned buffers should be written contiguously to the stream.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for MessageEncoder
impl RefUnwindSafe for MessageEncoder
impl Send for MessageEncoder
impl Sync for MessageEncoder
impl Unpin for MessageEncoder
impl UnwindSafe for MessageEncoder
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
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