[][src]Struct starb::Writer

pub struct Writer<'a, T> { /* fields omitted */ }

Producer for Ringbuffer.

Methods

impl<'_, T> Writer<'_, T> where
    T: Copy
[src]

pub fn unshift(&mut self, v: T) -> Result<(), Error>[src]

Put v at the end of the buffer.

Returns BufferFull if appending v would overlap with the start of the buffer.

Trait Implementations

impl<'_, T> Sync for Writer<'_, T>[src]

impl<'_, T> Send for Writer<'_, T> where
    T: Send
[src]

Auto Trait Implementations

impl<'a, T> Unpin for Writer<'a, T> where
    T: Unpin

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]