[][src]Enum ensure::MetResult

pub enum MetResult<N, M> {
    AlreadyMet(N),
    Met(M),
}

Result of ensuring target state with met()

Variants

AlreadyMet(N)Met(M)

Methods

impl<T> MetResult<T, T>[src]

pub fn coalesce(self) -> T[src]

When Ensure::Met and Ensure::MeetAction::Met types are the same coalesce() will return single return type regardless of actual result

Trait Implementations

impl<N: Debug, M: Debug> Debug for MetResult<N, M>[src]

Auto Trait Implementations

impl<N, M> Send for MetResult<N, M> where
    M: Send,
    N: Send

impl<N, M> Sync for MetResult<N, M> where
    M: Sync,
    N: Sync

Blanket Implementations

impl<T> Existential for T[src]

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

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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