Struct stm32_hal2::dma::CircBuffer [−][src]
pub struct CircBuffer<BUFFER, CHANNEL> where
BUFFER: 'static, { /* fields omitted */ }Implementations
impl<B> CircBuffer<B, C1>[src]
impl<B> CircBuffer<B, C1>[src]pub fn partial_peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>, [src]
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>,
Return the partial contents of the buffer half being written
pub fn peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>, [src]
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>,
Peeks into the readable half of the buffer Returns the result of the closure
pub fn readable_half(&mut self) -> Result<Half, Error>[src]
Returns the Half of the buffer that can be read
impl<B> CircBuffer<B, C2>[src]
impl<B> CircBuffer<B, C2>[src]pub fn partial_peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>, [src]
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>,
Return the partial contents of the buffer half being written
pub fn peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>, [src]
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>,
Peeks into the readable half of the buffer Returns the result of the closure
pub fn readable_half(&mut self) -> Result<Half, Error>[src]
Returns the Half of the buffer that can be read
impl<B> CircBuffer<B, C3>[src]
impl<B> CircBuffer<B, C3>[src]pub fn partial_peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>, [src]
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>,
Return the partial contents of the buffer half being written
pub fn peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>, [src]
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>,
Peeks into the readable half of the buffer Returns the result of the closure
pub fn readable_half(&mut self) -> Result<Half, Error>[src]
Returns the Half of the buffer that can be read
impl<B> CircBuffer<B, C4>[src]
impl<B> CircBuffer<B, C4>[src]pub fn partial_peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>, [src]
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>,
Return the partial contents of the buffer half being written
pub fn peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>, [src]
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>,
Peeks into the readable half of the buffer Returns the result of the closure
pub fn readable_half(&mut self) -> Result<Half, Error>[src]
Returns the Half of the buffer that can be read
impl<B> CircBuffer<B, C5>[src]
impl<B> CircBuffer<B, C5>[src]pub fn partial_peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>, [src]
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>,
Return the partial contents of the buffer half being written
pub fn peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>, [src]
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>,
Peeks into the readable half of the buffer Returns the result of the closure
pub fn readable_half(&mut self) -> Result<Half, Error>[src]
Returns the Half of the buffer that can be read
impl<B> CircBuffer<B, C6>[src]
impl<B> CircBuffer<B, C6>[src]pub fn partial_peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>, [src]
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>,
Return the partial contents of the buffer half being written
pub fn peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>, [src]
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>,
Peeks into the readable half of the buffer Returns the result of the closure
pub fn readable_half(&mut self) -> Result<Half, Error>[src]
Returns the Half of the buffer that can be read
impl<B> CircBuffer<B, C7>[src]
impl<B> CircBuffer<B, C7>[src]pub fn partial_peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>, [src]
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>,
Return the partial contents of the buffer half being written
pub fn peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>, [src]
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>,
Peeks into the readable half of the buffer Returns the result of the closure
pub fn readable_half(&mut self) -> Result<Half, Error>[src]
Returns the Half of the buffer that can be read
impl<B> CircBuffer<B, C1>[src]
impl<B> CircBuffer<B, C1>[src]pub fn partial_peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>, [src]
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>,
Return the partial contents of the buffer half being written
pub fn peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>, [src]
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>,
Peeks into the readable half of the buffer Returns the result of the closure
pub fn readable_half(&mut self) -> Result<Half, Error>[src]
Returns the Half of the buffer that can be read
impl<B> CircBuffer<B, C2>[src]
impl<B> CircBuffer<B, C2>[src]pub fn partial_peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>, [src]
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>,
Return the partial contents of the buffer half being written
pub fn peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>, [src]
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>,
Peeks into the readable half of the buffer Returns the result of the closure
pub fn readable_half(&mut self) -> Result<Half, Error>[src]
Returns the Half of the buffer that can be read
impl<B> CircBuffer<B, C3>[src]
impl<B> CircBuffer<B, C3>[src]pub fn partial_peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>, [src]
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>,
Return the partial contents of the buffer half being written
pub fn peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>, [src]
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>,
Peeks into the readable half of the buffer Returns the result of the closure
pub fn readable_half(&mut self) -> Result<Half, Error>[src]
Returns the Half of the buffer that can be read
impl<B> CircBuffer<B, C4>[src]
impl<B> CircBuffer<B, C4>[src]pub fn partial_peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>, [src]
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>,
Return the partial contents of the buffer half being written
pub fn peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>, [src]
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>,
Peeks into the readable half of the buffer Returns the result of the closure
pub fn readable_half(&mut self) -> Result<Half, Error>[src]
Returns the Half of the buffer that can be read
impl<B> CircBuffer<B, C5>[src]
impl<B> CircBuffer<B, C5>[src]pub fn partial_peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>, [src]
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>,
Return the partial contents of the buffer half being written
pub fn peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>, [src]
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>,
Peeks into the readable half of the buffer Returns the result of the closure
pub fn readable_half(&mut self) -> Result<Half, Error>[src]
Returns the Half of the buffer that can be read
impl<B> CircBuffer<B, C6>[src]
impl<B> CircBuffer<B, C6>[src]pub fn partial_peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>, [src]
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>,
Return the partial contents of the buffer half being written
pub fn peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>, [src]
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>,
Peeks into the readable half of the buffer Returns the result of the closure
pub fn readable_half(&mut self) -> Result<Half, Error>[src]
Returns the Half of the buffer that can be read
impl<B> CircBuffer<B, C7>[src]
impl<B> CircBuffer<B, C7>[src]pub fn partial_peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>, [src]
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>,
Return the partial contents of the buffer half being written
pub fn peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>, [src]
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]> + 'static,
H: AsSlice<Element = T>,
Peeks into the readable half of the buffer Returns the result of the closure
pub fn readable_half(&mut self) -> Result<Half, Error>[src]
Returns the Half of the buffer that can be read
Auto Trait Implementations
impl<BUFFER, CHANNEL> Send for CircBuffer<BUFFER, CHANNEL> where
BUFFER: Send,
CHANNEL: Send,
impl<BUFFER, CHANNEL> Send for CircBuffer<BUFFER, CHANNEL> where
BUFFER: Send,
CHANNEL: Send, impl<BUFFER, CHANNEL> Sync for CircBuffer<BUFFER, CHANNEL> where
BUFFER: Sync,
CHANNEL: Sync,
impl<BUFFER, CHANNEL> Sync for CircBuffer<BUFFER, CHANNEL> where
BUFFER: Sync,
CHANNEL: Sync, impl<BUFFER, CHANNEL> Unpin for CircBuffer<BUFFER, CHANNEL> where
BUFFER: Unpin,
CHANNEL: Unpin,
impl<BUFFER, CHANNEL> Unpin for CircBuffer<BUFFER, CHANNEL> where
BUFFER: Unpin,
CHANNEL: Unpin,