[][src]Struct miau::provider::ProviderStruct

pub struct ProviderStruct<S, T> { /* fields omitted */ }

Combines source and format into single provider.

Implementations

impl<S: Source, T: Format> ProviderStruct<S, T>[src]

pub fn synchronous(s: S, t: T) -> Self[src]

Constructs new synchronous source provider.

impl<S, T> ProviderStruct<S, T> where
    S: AsyncSource + Send + Sync,
    T: Format + Send + Sync
[src]

pub fn asynchronous(s: S, t: T) -> Self[src]

Constructs new asynchronous source provider.

Trait Implementations

impl<S, T> AsyncProvider for ProviderStruct<S, T> where
    S: AsyncSource + Send + Sync,
    T: Format + Send + Sync
[src]

impl<S, T> Provider for ProviderStruct<S, T> where
    S: Source,
    T: Format
[src]

Auto Trait Implementations

impl<S, T> RefUnwindSafe for ProviderStruct<S, T> where
    S: RefUnwindSafe,
    T: RefUnwindSafe
[src]

impl<S, T> Send for ProviderStruct<S, T> where
    S: Send,
    T: Send
[src]

impl<S, T> Sync for ProviderStruct<S, T> where
    S: Sync,
    T: Sync
[src]

impl<S, T> Unpin for ProviderStruct<S, T> where
    S: Unpin,
    T: Unpin
[src]

impl<S, T> UnwindSafe for ProviderStruct<S, T> where
    S: UnwindSafe,
    T: UnwindSafe
[src]

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> 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.