pub struct Delegate<T> { /* private fields */ }Expand description
A multicast delegate: the handlers of an event in the order they were added. Public for the connections that are implemented outside this library (the ones of the designer support), which keep their handlers in one as the connections here do.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Delegate<T>
impl<T> !UnwindSafe for Delegate<T>
impl<T> Freeze for Delegate<T>where
Vec<(HandlerToken, Arc<dyn Fn(&dyn IFerroRemoteTransportConnection, &T) + Send + Sync>)>: Freeze,
impl<T> Send for Delegate<T>where
Vec<(HandlerToken, Arc<dyn Fn(&dyn IFerroRemoteTransportConnection, &T) + Send + Sync>)>: Send,
impl<T> Sync for Delegate<T>where
Vec<(HandlerToken, Arc<dyn Fn(&dyn IFerroRemoteTransportConnection, &T) + Send + Sync>)>: Sync,
impl<T> Unpin for Delegate<T>where
Vec<(HandlerToken, Arc<dyn Fn(&dyn IFerroRemoteTransportConnection, &T) + Send + Sync>)>: Unpin,
impl<T> UnsafeUnpin for Delegate<T>where
Vec<(HandlerToken, Arc<dyn Fn(&dyn IFerroRemoteTransportConnection, &T) + Send + Sync>)>: UnsafeUnpin,
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