Struct Event
pub struct Event<T: Interface> { /* private fields */ }Expand description
A type that you can use to declare and implement an event of a specified delegate type.
The implementation is thread-safe and designed to avoid contention between events being raised and delegates being added or removed.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for Event<T>
impl<T> Forget for Event<T>
impl<T> Move for Event<T>
impl<T> RefUnwindSafe for Event<T>
impl<T> Send for Event<T>
impl<T> Sync for Event<T>
impl<T> Unpin for Event<T>
impl<T> UnsafeUnpin for Event<T>where
Align4<u32>: UnsafeUnpin,
Align1<u8>: UnsafeUnpin,
*const ArcInner<[AgileDelegate<T>]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[AgileDelegate<T>]>>: UnsafeUnpin,
impl<T> UnwindSafe for Event<T>
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