pub struct MessageBuffer<T: Transport> { /* private fields */ }
Expand description
A transport buffer with a pre-parsed header and known ordinal.
Implementations§
Source§impl<T: Transport> MessageBuffer<T>
impl<T: Transport> MessageBuffer<T>
Sourcepub fn parse_header(
buffer: T::RecvBuffer,
) -> Result<(u32, Self), ProtocolError<T::Error>>
pub fn parse_header( buffer: T::RecvBuffer, ) -> Result<(u32, Self), ProtocolError<T::Error>>
Creates a new message buffer by parsing the given transport buffer.
On success, returns the transaction ID and message buffer.
Sourcepub fn into_inner(self) -> T::RecvBuffer
pub fn into_inner(self) -> T::RecvBuffer
Returns the underlying buffer.
Auto Trait Implementations§
impl<T> Freeze for MessageBuffer<T>
impl<T> RefUnwindSafe for MessageBuffer<T>
impl<T> Send for MessageBuffer<T>
impl<T> Sync for MessageBuffer<T>
impl<T> Unpin for MessageBuffer<T>
impl<T> UnwindSafe for MessageBuffer<T>
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