[][src]Struct stm32f1xx_hal::dma::CircBuffer

pub struct CircBuffer<BUFFER, CHANNEL> where
    BUFFER: 'static, 
{ /* fields omitted */ }

Methods

impl<B> CircBuffer<B, C1>[src]

pub fn peek<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, Half) -> R, 
[src]

Peeks into the readable half of the buffer

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 peek<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, Half) -> R, 
[src]

Peeks into the readable half of the buffer

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 peek<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, Half) -> R, 
[src]

Peeks into the readable half of the buffer

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 peek<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, Half) -> R, 
[src]

Peeks into the readable half of the buffer

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 peek<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, Half) -> R, 
[src]

Peeks into the readable half of the buffer

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 peek<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, Half) -> R, 
[src]

Peeks into the readable half of the buffer

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 peek<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, Half) -> R, 
[src]

Peeks into the readable half of the buffer

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 peek<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, Half) -> R, 
[src]

Peeks into the readable half of the buffer

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 peek<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, Half) -> R, 
[src]

Peeks into the readable half of the buffer

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 peek<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, Half) -> R, 
[src]

Peeks into the readable half of the buffer

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 peek<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, Half) -> R, 
[src]

Peeks into the readable half of the buffer

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 peek<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, Half) -> R, 
[src]

Peeks into the readable half of the buffer

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> Sync for CircBuffer<BUFFER, CHANNEL> where
    BUFFER: Sync,
    CHANNEL: Sync

Blanket Implementations

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> From for T[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self