[−][src]Struct spirit_tokio::either::EitherInstaller
An Installer
for Either
Resource
s.
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]
fn default() -> 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]
A: Installer<RA, O, C>,
B: Installer<RB, O, C>,
type UninstallHandle = Either<A::UninstallHandle, B::UninstallHandle>
A handle representing lifetime of the resource. Read more
fn install(
&mut self,
resource: Either<RA, RB>,
name: &'static str
) -> Self::UninstallHandle
[src]
&mut self,
resource: Either<RA, RB>,
name: &'static str
) -> Self::UninstallHandle
fn init<E: Extensible<Opts = O, Config = C, Ok = E>>(
&mut self,
builder: E,
name: &'static str
) -> Result<E, AnyError> where
E::Config: DeserializeOwned + Send + Sync + 'static,
E::Opts: StructOpt + Send + Sync + 'static,
[src]
&mut self,
builder: E,
name: &'static str
) -> Result<E, AnyError> where
E::Config: DeserializeOwned + Send + Sync + 'static,
E::Opts: StructOpt + Send + Sync + 'static,
Auto Trait Implementations
impl<A, B> RefUnwindSafe for EitherInstaller<A, B> where
A: RefUnwindSafe,
B: RefUnwindSafe,
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for EitherInstaller<A, B> where
A: Send,
B: Send,
A: Send,
B: Send,
impl<A, B> Sync for EitherInstaller<A, B> where
A: Sync,
B: Sync,
A: Sync,
B: Sync,
impl<A, B> Unpin for EitherInstaller<A, B> where
A: Unpin,
B: Unpin,
A: Unpin,
B: Unpin,
impl<A, B> UnwindSafe for EitherInstaller<A, B> where
A: UnwindSafe,
B: UnwindSafe,
A: UnwindSafe,
B: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoResult<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,