pub struct CircBuffer<BUFFER, CHANNEL>where
BUFFER: 'static,{ /* private fields */ }Implementations§
Source§impl<B> CircBuffer<B, C1>
impl<B> CircBuffer<B, C1>
Sourcepub fn partial_peek<R, F, T>(&mut self, f: F) -> Result<R, Error>
pub fn partial_peek<R, F, T>(&mut self, f: F) -> Result<R, Error>
Return the partial contents of the buffer half being written
Sourcepub fn peek<R, F, T>(&mut self, f: F) -> Result<R, Error>
pub fn peek<R, F, T>(&mut self, f: F) -> Result<R, Error>
Peeks into the readable half of the buffer Returns the result of the closure
Sourcepub fn readable_half(&mut self) -> Result<Half, Error>
pub fn readable_half(&mut self) -> Result<Half, Error>
Returns the Half of the buffer that can be read
Source§impl<B> CircBuffer<B, C2>
impl<B> CircBuffer<B, C2>
Sourcepub fn partial_peek<R, F, T>(&mut self, f: F) -> Result<R, Error>
pub fn partial_peek<R, F, T>(&mut self, f: F) -> Result<R, Error>
Return the partial contents of the buffer half being written
Sourcepub fn peek<R, F, T>(&mut self, f: F) -> Result<R, Error>
pub fn peek<R, F, T>(&mut self, f: F) -> Result<R, Error>
Peeks into the readable half of the buffer Returns the result of the closure
Sourcepub fn readable_half(&mut self) -> Result<Half, Error>
pub fn readable_half(&mut self) -> Result<Half, Error>
Returns the Half of the buffer that can be read
Source§impl<B> CircBuffer<B, C3>
impl<B> CircBuffer<B, C3>
Sourcepub fn partial_peek<R, F, T>(&mut self, f: F) -> Result<R, Error>
pub fn partial_peek<R, F, T>(&mut self, f: F) -> Result<R, Error>
Return the partial contents of the buffer half being written
Sourcepub fn peek<R, F, T>(&mut self, f: F) -> Result<R, Error>
pub fn peek<R, F, T>(&mut self, f: F) -> Result<R, Error>
Peeks into the readable half of the buffer Returns the result of the closure
Sourcepub fn readable_half(&mut self) -> Result<Half, Error>
pub fn readable_half(&mut self) -> Result<Half, Error>
Returns the Half of the buffer that can be read
Source§impl<B> CircBuffer<B, C4>
impl<B> CircBuffer<B, C4>
Sourcepub fn partial_peek<R, F, T>(&mut self, f: F) -> Result<R, Error>
pub fn partial_peek<R, F, T>(&mut self, f: F) -> Result<R, Error>
Return the partial contents of the buffer half being written
Sourcepub fn peek<R, F, T>(&mut self, f: F) -> Result<R, Error>
pub fn peek<R, F, T>(&mut self, f: F) -> Result<R, Error>
Peeks into the readable half of the buffer Returns the result of the closure
Sourcepub fn readable_half(&mut self) -> Result<Half, Error>
pub fn readable_half(&mut self) -> Result<Half, Error>
Returns the Half of the buffer that can be read
Source§impl<B> CircBuffer<B, C5>
impl<B> CircBuffer<B, C5>
Sourcepub fn partial_peek<R, F, T>(&mut self, f: F) -> Result<R, Error>
pub fn partial_peek<R, F, T>(&mut self, f: F) -> Result<R, Error>
Return the partial contents of the buffer half being written
Sourcepub fn peek<R, F, T>(&mut self, f: F) -> Result<R, Error>
pub fn peek<R, F, T>(&mut self, f: F) -> Result<R, Error>
Peeks into the readable half of the buffer Returns the result of the closure
Sourcepub fn readable_half(&mut self) -> Result<Half, Error>
pub fn readable_half(&mut self) -> Result<Half, Error>
Returns the Half of the buffer that can be read
Source§impl<B> CircBuffer<B, C6>
impl<B> CircBuffer<B, C6>
Sourcepub fn partial_peek<R, F, T>(&mut self, f: F) -> Result<R, Error>
pub fn partial_peek<R, F, T>(&mut self, f: F) -> Result<R, Error>
Return the partial contents of the buffer half being written
Sourcepub fn peek<R, F, T>(&mut self, f: F) -> Result<R, Error>
pub fn peek<R, F, T>(&mut self, f: F) -> Result<R, Error>
Peeks into the readable half of the buffer Returns the result of the closure
Sourcepub fn readable_half(&mut self) -> Result<Half, Error>
pub fn readable_half(&mut self) -> Result<Half, Error>
Returns the Half of the buffer that can be read
Source§impl<B> CircBuffer<B, C7>
impl<B> CircBuffer<B, C7>
Sourcepub fn partial_peek<R, F, T>(&mut self, f: F) -> Result<R, Error>
pub fn partial_peek<R, F, T>(&mut self, f: F) -> Result<R, Error>
Return the partial contents of the buffer half being written
Sourcepub fn peek<R, F, T>(&mut self, f: F) -> Result<R, Error>
pub fn peek<R, F, T>(&mut self, f: F) -> Result<R, Error>
Peeks into the readable half of the buffer Returns the result of the closure
Sourcepub fn readable_half(&mut self) -> Result<Half, Error>
pub fn readable_half(&mut self) -> Result<Half, Error>
Returns the Half of the buffer that can be read