pub struct RequestBuffer<T: Transport, M> { /* private fields */ }
Expand description
A strongly typed receive buffer.
Implementations§
Source§impl<T: Transport, M> RequestBuffer<T, M>
impl<T: Transport, M> RequestBuffer<T, M>
Sourcepub fn from_untyped(buffer: T::RecvBuffer) -> Self
pub fn from_untyped(buffer: T::RecvBuffer) -> Self
Creates a new strongly typed receive buffer from an untyped receive buffer.
Sourcepub fn into_untyped(self) -> T::RecvBuffer
pub fn into_untyped(self) -> T::RecvBuffer
Returns the underlying untyped receive buffer.
Auto Trait Implementations§
impl<T, M> Freeze for RequestBuffer<T, M>
impl<T, M> RefUnwindSafe for RequestBuffer<T, M>
impl<T, M> Send for RequestBuffer<T, M>where
M: Send,
impl<T, M> Sync for RequestBuffer<T, M>
impl<T, M> Unpin for RequestBuffer<T, M>
impl<T, M> UnwindSafe for RequestBuffer<T, M>
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