pub struct RtcCallbacks<Msg: UserMsgPayload> { /* private fields */ }Expand description
Subscription registry that backs Peer::subscribe / Peer::unsubscribe.
Drivers own one instance and call Self::emit on every protocol event;
it routes to all matching user callbacks.
Implementations§
Source§impl<Msg: UserMsgPayload> RtcCallbacks<Msg>
impl<Msg: UserMsgPayload> RtcCallbacks<Msg>
Source§impl<Msg: UserMsgPayload> RtcCallbacks<Msg>
impl<Msg: UserMsgPayload> RtcCallbacks<Msg>
Trait Implementations§
Source§impl<Msg: UserMsgPayload> Default for RtcCallbacks<Msg>
impl<Msg: UserMsgPayload> Default for RtcCallbacks<Msg>
Auto Trait Implementations§
impl<Msg> Freeze for RtcCallbacks<Msg>
impl<Msg> !RefUnwindSafe for RtcCallbacks<Msg>
impl<Msg> Send for RtcCallbacks<Msg>
impl<Msg> Sync for RtcCallbacks<Msg>
impl<Msg> Unpin for RtcCallbacks<Msg>
impl<Msg> UnsafeUnpin for RtcCallbacks<Msg>
impl<Msg> !UnwindSafe for RtcCallbacks<Msg>
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