pub enum BroadcastFlags {
Local = 1,
Broadcast = 2,
Volatile = 4,
}Expand description
Flags that can be used to modify the behavior of the broadcast methods.
Variants§
Local = 1
Broadcast only to the current server
Broadcast = 2
Broadcast to all clients except the sender
Volatile = 4
The event may be dropped if the client is not ready to receive it (e.g. the connection is buffering or not connected). This is useful for events that are not critical, like position updates in a game. See socket.io volatile events.
Trait Implementations§
Source§impl Clone for BroadcastFlags
impl Clone for BroadcastFlags
Source§fn clone(&self) -> BroadcastFlags
fn clone(&self) -> BroadcastFlags
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BroadcastFlags
Source§impl Debug for BroadcastFlags
impl Debug for BroadcastFlags
impl Eq for BroadcastFlags
Source§impl Hash for BroadcastFlags
impl Hash for BroadcastFlags
Source§impl PartialEq for BroadcastFlags
impl PartialEq for BroadcastFlags
Source§fn eq(&self, other: &BroadcastFlags) -> bool
fn eq(&self, other: &BroadcastFlags) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BroadcastFlags
Auto Trait Implementations§
impl Freeze for BroadcastFlags
impl RefUnwindSafe for BroadcastFlags
impl Send for BroadcastFlags
impl Sync for BroadcastFlags
impl Unpin for BroadcastFlags
impl UnsafeUnpin for BroadcastFlags
impl UnwindSafe for BroadcastFlags
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