pub struct Event { /* private fields */ }Expand description
Event type emitted by an Awareness struct.
Implementations§
Source§impl Event
impl Event
pub fn new( added: Vec<ClientID>, updated: Vec<ClientID>, removed: Vec<ClientID>, ) -> Self
Sourcepub fn added(&self) -> &[ClientID] ⓘ
pub fn added(&self) -> &[ClientID] ⓘ
Collection of new clients that have been added to an Awareness struct, that was not known
before. Actual client state can be accessed via awareness.clients().get(client_id).
Trait Implementations§
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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