[][src]Struct keebrs::net::Background

pub struct Background<R: RawMutex, T> { /* fields omitted */ }

A backgrounded net.

This is useful if you want to get net IO out of the hot path by placing it in its own task.

It can be constructed with the [background] function.

Note: The address of this net implementation is static from when it is created. If the backgrounded net adjusts its address at runtime, it will not be reflected in Background's Net::addr method.

Trait Implementations

impl<R: RawMutex, T> Clone for Background<R, T>[src]

impl<R: RawMutex, T> Net<T> for Background<R, T>[src]

impl<R: RawMutex, T> PinnedDrop for Background<R, T>[src]

impl<R, T> Sink<Msg<T>> for Background<R, T> where
    R: RawMutex
[src]

type Error = !

The type of value produced by the sink when an error occurs.

impl<R, T> Stream for Background<R, T> where
    R: RawMutex
[src]

type Item = Result<Msg<T>, !>

Values yielded by the stream.

impl<'pin, R: RawMutex, T> Unpin for Background<R, T> where
    __Background<'pin, R, T>: Unpin
[src]

impl<R: RawMutex, T> UnsafeUnpin for Background<R, T>[src]

Auto Trait Implementations

impl<R, T> Send for Background<R, T> where
    R: Send + Sync,
    T: Send

impl<R, T> Sync for Background<R, T> where
    R: Send + Sync,
    T: Send

Blanket Implementations

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

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

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

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

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

impl<T, U> NetRecv<T> for U where
    U: TryStream<Ok = Msg<T>>, 
[src]

impl<T, U> NetRecvExt<T> for U where
    U: NetRecv<T>, 
[src]

impl<T, U> NetSend<T> for U where
    U: Sink<Msg<T>>, 
[src]

impl<T, U> NetSendExt<T> for U where
    U: NetSend<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, Item> SinkExt<Item> for T where
    T: Sink<Item> + ?Sized
[src]

impl<T> StreamExt for T where
    T: Stream + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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> 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<S, T, E> TryStream for S where
    S: Stream<Item = Result<T, E>> + ?Sized
[src]

type Ok = T

The type of successful values yielded by this future

type Error = E

The type of failures yielded by this future

impl<S> TryStreamExt for S where
    S: TryStream + ?Sized
[src]