[][src]Struct funnel::Drain

#[repr(transparent)]
pub struct Drain { /* fields omitted */ }

A drain retrieves the data written into a Logger

Methods

impl Drain[src]

pub fn get_all() -> &'static [Self][src]

The drain endpoint of each ring buffer, highest priority first

pub fn read<'b>(&self, buf: &'b mut [u8]) -> &'b [u8][src]

Copies the contents of the Logger ring buffer into the given buffer

Trait Implementations

impl Copy for Drain[src]

impl Iterator for Drain[src]

type Item = u8

The type of the elements being iterated over.

impl Clone for Drain[src]

Auto Trait Implementations

impl Unpin for Drain

impl Send for Drain

impl Sync for Drain

Blanket Implementations

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

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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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