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

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

Methods

impl<B, PAYLOAD> CircBuffer<B, RxDma<PAYLOAD, C1>> where
    RxDma<PAYLOAD, C1>: TransferPayload
[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

pub fn stop(self) -> (&'static mut [B; 2], RxDma<PAYLOAD, C1>)[src]

Stops the transfer and returns the underlying buffer and RxDma

impl<B, PAYLOAD> CircBuffer<B, RxDma<PAYLOAD, C2>> where
    RxDma<PAYLOAD, C2>: TransferPayload
[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

pub fn stop(self) -> (&'static mut [B; 2], RxDma<PAYLOAD, C2>)[src]

Stops the transfer and returns the underlying buffer and RxDma

impl<B, PAYLOAD> CircBuffer<B, RxDma<PAYLOAD, C3>> where
    RxDma<PAYLOAD, C3>: TransferPayload
[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

pub fn stop(self) -> (&'static mut [B; 2], RxDma<PAYLOAD, C3>)[src]

Stops the transfer and returns the underlying buffer and RxDma

impl<B, PAYLOAD> CircBuffer<B, RxDma<PAYLOAD, C4>> where
    RxDma<PAYLOAD, C4>: TransferPayload
[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

pub fn stop(self) -> (&'static mut [B; 2], RxDma<PAYLOAD, C4>)[src]

Stops the transfer and returns the underlying buffer and RxDma

impl<B, PAYLOAD> CircBuffer<B, RxDma<PAYLOAD, C5>> where
    RxDma<PAYLOAD, C5>: TransferPayload
[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

pub fn stop(self) -> (&'static mut [B; 2], RxDma<PAYLOAD, C5>)[src]

Stops the transfer and returns the underlying buffer and RxDma

impl<B, PAYLOAD> CircBuffer<B, RxDma<PAYLOAD, C6>> where
    RxDma<PAYLOAD, C6>: TransferPayload
[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

pub fn stop(self) -> (&'static mut [B; 2], RxDma<PAYLOAD, C6>)[src]

Stops the transfer and returns the underlying buffer and RxDma

impl<B, PAYLOAD> CircBuffer<B, RxDma<PAYLOAD, C7>> where
    RxDma<PAYLOAD, C7>: TransferPayload
[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

pub fn stop(self) -> (&'static mut [B; 2], RxDma<PAYLOAD, C7>)[src]

Stops the transfer and returns the underlying buffer and RxDma

impl<B, PAYLOAD> CircBuffer<B, RxDma<PAYLOAD, C1>> where
    RxDma<PAYLOAD, C1>: TransferPayload
[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

pub fn stop(self) -> (&'static mut [B; 2], RxDma<PAYLOAD, C1>)[src]

Stops the transfer and returns the underlying buffer and RxDma

impl<B, PAYLOAD> CircBuffer<B, RxDma<PAYLOAD, C2>> where
    RxDma<PAYLOAD, C2>: TransferPayload
[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

pub fn stop(self) -> (&'static mut [B; 2], RxDma<PAYLOAD, C2>)[src]

Stops the transfer and returns the underlying buffer and RxDma

impl<B, PAYLOAD> CircBuffer<B, RxDma<PAYLOAD, C3>> where
    RxDma<PAYLOAD, C3>: TransferPayload
[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

pub fn stop(self) -> (&'static mut [B; 2], RxDma<PAYLOAD, C3>)[src]

Stops the transfer and returns the underlying buffer and RxDma

impl<B, PAYLOAD> CircBuffer<B, RxDma<PAYLOAD, C4>> where
    RxDma<PAYLOAD, C4>: TransferPayload
[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

pub fn stop(self) -> (&'static mut [B; 2], RxDma<PAYLOAD, C4>)[src]

Stops the transfer and returns the underlying buffer and RxDma

impl<B, PAYLOAD> CircBuffer<B, RxDma<PAYLOAD, C5>> where
    RxDma<PAYLOAD, C5>: TransferPayload
[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

pub fn stop(self) -> (&'static mut [B; 2], RxDma<PAYLOAD, C5>)[src]

Stops the transfer and returns the underlying buffer and RxDma

Auto Trait Implementations

impl<BUFFER, PAYLOAD> Unpin for CircBuffer<BUFFER, PAYLOAD> where
    PAYLOAD: Unpin

impl<BUFFER, PAYLOAD> Sync for CircBuffer<BUFFER, PAYLOAD> where
    BUFFER: Sync,
    PAYLOAD: Sync

impl<BUFFER, PAYLOAD> Send for CircBuffer<BUFFER, PAYLOAD> where
    BUFFER: Send,
    PAYLOAD: Send

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