MediaEvent
struct · ferroui-media · v0.5.0
struct MediaEvent<T>
UI-thread event with reentrant delivery and deterministic subscription Drop.
Members
subscribe
fn subscribe(self: &Self, handler: impl Fn(&T) -> () + 'static) -> MediaSubscription
emit
fn emit(self: &Self, value: &T)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedClassDefaultsErasedDestructorIntoEitherCloneDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.