pub(super) struct Adapter(pub(super) Arc<dyn AnyConnectionObserver>);Tuple Fields§
§0: Arc<dyn AnyConnectionObserver>Trait Implementations§
Source§impl ConnectionObserver for Adapter
impl ConnectionObserver for Adapter
Source§fn on_event(&self, event: &ClientEvent)
fn on_event(&self, event: &ClientEvent)
Called when a connection event occurs.
Source§fn on_event_owned(&self, event: ClientEvent)
fn on_event_owned(&self, event: ClientEvent)
Called with an owned event. Default implementation forwards to
on_event(&event). Override to consume the event without cloning –
used by the cross-draft dispatch adapter to move the event directly
into its AnyClientEvent variant.Auto Trait Implementations§
impl Freeze for Adapter
impl !RefUnwindSafe for Adapter
impl Send for Adapter
impl Sync for Adapter
impl Unpin for Adapter
impl UnsafeUnpin for Adapter
impl !UnwindSafe for Adapter
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