pub enum Event<A, L, S>where
A: Asset,
L: Importer<Output = <A as Import>::Input>,
S: Exporter<Input = <A as Export>::Output>,{
Load(Handle<A>),
Save(Handle<A>),
Reimport(Handle<A>),
Remove(Handle<A>, Arc<A>),
ExportError(Handle<A>, <A as Export>::Error),
ImportError(Handle<A>, <A as Import>::Error),
LoadError(Handle<A>, L::Error),
SaveError(Handle<A>, S::Error),
}Variants§
Load(Handle<A>)
Save(Handle<A>)
Reimport(Handle<A>)
Remove(Handle<A>, Arc<A>)
ExportError(Handle<A>, <A as Export>::Error)
ImportError(Handle<A>, <A as Import>::Error)
LoadError(Handle<A>, L::Error)
SaveError(Handle<A>, S::Error)
Trait Implementations§
impl<A, L, S> Send for Event<A, L, S>
impl<A, L, S> Sync for Event<A, L, S>
Auto Trait Implementations§
impl<A, L, S> Freeze for Event<A, L, S>
impl<A, L, S> RefUnwindSafe for Event<A, L, S>where
<A as Export>::Error: RefUnwindSafe,
<A as Import>::Error: RefUnwindSafe,
<L as Importer>::Error: RefUnwindSafe,
<S as Exporter>::Error: RefUnwindSafe,
A: RefUnwindSafe,
impl<A, L, S> Unpin for Event<A, L, S>
impl<A, L, S> UnwindSafe for Event<A, L, S>where
<A as Export>::Error: UnwindSafe,
<A as Import>::Error: UnwindSafe,
<L as Importer>::Error: UnwindSafe,
<S as Exporter>::Error: UnwindSafe,
A: RefUnwindSafe + UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more