[][src]Struct alt_stm32f30x_hal::dma::CircBuffer

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

CircBuffer

Methods

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

pub fn clear_interrupt(&mut self)[src]

clears interrupt

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 clear_interrupt(&mut self)[src]

clears interrupt

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 clear_interrupt(&mut self)[src]

clears interrupt

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 clear_interrupt(&mut self)[src]

clears interrupt

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 clear_interrupt(&mut self)[src]

clears interrupt

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 clear_interrupt(&mut self)[src]

clears interrupt

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 clear_interrupt(&mut self)[src]

clears interrupt

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 clear_interrupt(&mut self)[src]

clears interrupt

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 clear_interrupt(&mut self)[src]

clears interrupt

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 clear_interrupt(&mut self)[src]

clears interrupt

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 clear_interrupt(&mut self)[src]

clears interrupt

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 clear_interrupt(&mut self)[src]

clears interrupt

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

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<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> 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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self