pub struct Buffer<K: AllocKind> { /* private fields */ }Expand description
The buffer that can be used by the Session.
Implementations§
Source§impl<K: AllocKind> Buffer<K>
impl<K: AllocKind> Buffer<K>
Sourcepub fn frame_type(&self) -> Result<FrameType>
pub fn frame_type(&self) -> Result<FrameType>
Retrieves the frame type of the buffer.
Sourcepub fn as_slice_mut(&mut self) -> Option<&mut [u8]>
pub fn as_slice_mut(&mut self) -> Option<&mut [u8]>
Returns the buffer data as a mutable slice.
Source§impl Buffer<Tx>
impl Buffer<Tx>
Sourcepub fn set_frame_type(&mut self, frame_type: FrameType)
pub fn set_frame_type(&mut self, frame_type: FrameType)
Sets the frame type of the buffer.
Sourcepub fn set_tx_flags(&mut self, flags: TxFlags)
pub fn set_tx_flags(&mut self, flags: TxFlags)
Sets TxFlags of a Tx buffer.
Trait Implementations§
Auto Trait Implementations§
impl<K> Freeze for Buffer<K>
impl<K> !RefUnwindSafe for Buffer<K>
impl<K> Send for Buffer<K>where
K: Send,
impl<K> Sync for Buffer<K>where
K: Sync,
impl<K> Unpin for Buffer<K>where
K: Unpin,
impl<K> UnsafeUnpin for Buffer<K>
impl<K> !UnwindSafe for Buffer<K>
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