[][src]Enum lifeline::error::TakeResourceError

pub enum TakeResourceError {
    Uninitialized(ResourceUninitializedError),
    Taken(ResourceTakenError),
}

Variants

Implementations

impl TakeResourceError[src]

pub fn uninitialized<Bus, Res>() -> Self[src]

pub fn taken<Bus, Res>() -> Self[src]

Trait Implementations

impl Debug for TakeResourceError[src]

impl Display for TakeResourceError[src]

impl Error for TakeResourceError[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

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

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<From, To> Traitcast<To> for From where
    From: TraitcastFrom + ?Sized,
    To: 'static + ?Sized
[src]

fn cast_ref(&self) -> Option<&To>[src]

Tries to cast self to a different dynamic trait object. This will always return None if the implementation of the target trait, for the concrete type of self, has not been registered via traitcast!.

fn cast_mut(&mut self) -> Option<&mut To>[src]

Tries to cast the self to a different dynamic trait object. This will always return None if the implementation of the target trait, for the concrete type of self, has not been registered via traitcast!.

fn cast_box(self: Box<From>) -> Result<Box<To>, Box<dyn Any + 'static>>[src]

Tries to cast self to a boxed dynamic trait object. This will always return Err if the implementation of the target trait, for the concrete type of self, has not been registered via traitcast!.

impl<T> TraitcastFrom for T where
    T: 'static, 

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<V, T> VZip<V> for T where
    V: MultiLane<T>,