[−][src]Struct stm32f1xx_hal::dma::CircBuffer
Methods
impl<B, PAYLOAD> CircBuffer<B, RxDma<PAYLOAD, C1>> where
RxDma<PAYLOAD, C1>: TransferPayload, [src]
RxDma<PAYLOAD, C1>: TransferPayload,
pub fn peek<R, F>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&B, Half) -> R, [src]
F: FnOnce(&B, Half) -> R,
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]
RxDma<PAYLOAD, C2>: TransferPayload,
pub fn peek<R, F>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&B, Half) -> R, [src]
F: FnOnce(&B, Half) -> R,
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]
RxDma<PAYLOAD, C3>: TransferPayload,
pub fn peek<R, F>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&B, Half) -> R, [src]
F: FnOnce(&B, Half) -> R,
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]
RxDma<PAYLOAD, C4>: TransferPayload,
pub fn peek<R, F>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&B, Half) -> R, [src]
F: FnOnce(&B, Half) -> R,
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]
RxDma<PAYLOAD, C5>: TransferPayload,
pub fn peek<R, F>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&B, Half) -> R, [src]
F: FnOnce(&B, Half) -> R,
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]
RxDma<PAYLOAD, C6>: TransferPayload,
pub fn peek<R, F>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&B, Half) -> R, [src]
F: FnOnce(&B, Half) -> R,
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]
RxDma<PAYLOAD, C7>: TransferPayload,
pub fn peek<R, F>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&B, Half) -> R, [src]
F: FnOnce(&B, Half) -> R,
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]
RxDma<PAYLOAD, C1>: TransferPayload,
pub fn peek<R, F>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&B, Half) -> R, [src]
F: FnOnce(&B, Half) -> R,
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]
RxDma<PAYLOAD, C2>: TransferPayload,
pub fn peek<R, F>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&B, Half) -> R, [src]
F: FnOnce(&B, Half) -> R,
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]
RxDma<PAYLOAD, C3>: TransferPayload,
pub fn peek<R, F>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&B, Half) -> R, [src]
F: FnOnce(&B, Half) -> R,
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]
RxDma<PAYLOAD, C4>: TransferPayload,
pub fn peek<R, F>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&B, Half) -> R, [src]
F: FnOnce(&B, Half) -> R,
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]
RxDma<PAYLOAD, C5>: TransferPayload,
pub fn peek<R, F>(&mut self, f: F) -> Result<R, Error> where
F: FnOnce(&B, Half) -> R, [src]
F: FnOnce(&B, Half) -> R,
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,
PAYLOAD: Unpin,
impl<BUFFER, PAYLOAD> Sync for CircBuffer<BUFFER, PAYLOAD> where
BUFFER: Sync,
PAYLOAD: Sync,
BUFFER: Sync,
PAYLOAD: Sync,
impl<BUFFER, PAYLOAD> Send for CircBuffer<BUFFER, PAYLOAD> where
BUFFER: Send,
PAYLOAD: Send,
BUFFER: Send,
PAYLOAD: Send,
Blanket Implementations
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.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self