pub enum AuthorityLevel {
Exclusive,
Shared,
Open,
Frozen,
}Expand description
Authority level for a state atom
Variants§
Exclusive
Only one node can mutate (e.g., broadcaster’s visual state)
Multiple nodes can mutate with coordination (e.g., shared whiteboard)
Open
Any interested node can mutate (e.g., chat messages)
Frozen
No one can mutate (read-only, historical)
Trait Implementations§
Source§impl Clone for AuthorityLevel
impl Clone for AuthorityLevel
Source§fn clone(&self) -> AuthorityLevel
fn clone(&self) -> AuthorityLevel
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 moreSource§impl Debug for AuthorityLevel
impl Debug for AuthorityLevel
Source§impl Hash for AuthorityLevel
impl Hash for AuthorityLevel
Source§impl PartialEq for AuthorityLevel
impl PartialEq for AuthorityLevel
impl Copy for AuthorityLevel
impl Eq for AuthorityLevel
impl StructuralPartialEq for AuthorityLevel
Auto Trait Implementations§
impl Freeze for AuthorityLevel
impl RefUnwindSafe for AuthorityLevel
impl Send for AuthorityLevel
impl Sync for AuthorityLevel
impl Unpin for AuthorityLevel
impl UnsafeUnpin for AuthorityLevel
impl UnwindSafe for AuthorityLevel
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