pub struct StateGroup {
pub id: String,
pub name: String,
pub stream_id: String,
pub muted: bool,
pub clients: HashSet<String>,
}Expand description
group details as stored in the state object
this contains a HashSet of client ids instead of a vec of client structs
Fields§
§id: Stringgroup id
name: Stringgroup name
stream_id: Stringstream id
muted: boolgroup muted status
clients: HashSet<String>set of client ids in group
Trait Implementations§
Source§impl Clone for StateGroup
impl Clone for StateGroup
Source§fn clone(&self) -> StateGroup
fn clone(&self) -> StateGroup
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StateGroup
impl RefUnwindSafe for StateGroup
impl Send for StateGroup
impl Sync for StateGroup
impl Unpin for StateGroup
impl UnwindSafe for StateGroup
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