[][src]Struct spirit_tokio::either::EitherInstaller

pub struct EitherInstaller<A, B>(_, _);

An Installer for Either Resources.

This wraps two distinct installers so it can install resources that are installable by one or the other.

Note that this to work, both installers need to exist at the same time (as opposed to the resource where one or the other is in existence).

Trait Implementations

impl<A: Debug, B: Debug> Debug for EitherInstaller<A, B>[src]

impl<A: Default, B: Default> Default for EitherInstaller<A, B>[src]

impl<A, B, RA, RB, O, C> Installer<Either<RA, RB>, O, C> for EitherInstaller<A, B> where
    A: Installer<RA, O, C>,
    B: Installer<RB, O, C>, 
[src]

type UninstallHandle = Either<A::UninstallHandle, B::UninstallHandle>

A handle representing lifetime of the resource. Read more

Auto Trait Implementations

impl<A, B> RefUnwindSafe for EitherInstaller<A, B> where
    A: RefUnwindSafe,
    B: RefUnwindSafe

impl<A, B> Send for EitherInstaller<A, B> where
    A: Send,
    B: Send

impl<A, B> Sync for EitherInstaller<A, B> where
    A: Sync,
    B: Sync

impl<A, B> Unpin for EitherInstaller<A, B> where
    A: Unpin,
    B: Unpin

impl<A, B> UnwindSafe for EitherInstaller<A, B> where
    A: UnwindSafe,
    B: UnwindSafe

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