pub struct DmaTxStreamBufView { /* private fields */ }Available on crate feature
unstable only.Expand description
A view into a DmaTxStreamBuf
Implementations§
Source§impl DmaTxStreamBufView
impl DmaTxStreamBufView
Sourcepub fn available_bytes(&mut self) -> usize
pub fn available_bytes(&mut self) -> usize
Returns the number of bytes available for writing.
Sourcepub fn push_with(&mut self, f: impl FnOnce(&mut [u8]) -> usize) -> usize
pub fn push_with(&mut self, f: impl FnOnce(&mut [u8]) -> usize) -> usize
Pushes a buffer into the stream buffer. Returns the number of bytes pushed.