pub enum Event<T: Resource> {
Published(ScopeId, ResourceRef, T),
Dropped(ScopeId, ResourceRef),
}
Expand description
Pushed event for a dynamic resources
Variants
Published(ScopeId, ResourceRef, T)
Scope under the ScopeId, it published the Resource T under given resource reference (string)
Dropped(ScopeId, ResourceRef)
Pushed when the resource is dropped
Implementations
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Event<T> where
T: RefUnwindSafe,
impl<T> Send for Event<T>
impl<T> Sync for Event<T>
impl<T> Unpin for Event<T> where
T: Unpin,
impl<T> UnwindSafe for Event<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more