Struct stm32_hal2::dma::CircBuffer [−][src]
Implementations
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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,
BUFFER: Send,
CHANNEL: Send,
impl<BUFFER, CHANNEL> Sync for CircBuffer<BUFFER, CHANNEL> where
BUFFER: Sync,
CHANNEL: Sync,
BUFFER: Sync,
CHANNEL: Sync,
impl<BUFFER, CHANNEL> Unpin for CircBuffer<BUFFER, CHANNEL> where
BUFFER: Unpin,
CHANNEL: Unpin,
BUFFER: Unpin,
CHANNEL: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,