pub struct ChannelPatch {
pub id: ChannelId,
pub parent: Option<ChannelId>,
pub name: Option<String>,
pub position: Option<i32>,
pub can_enter: Option<bool>,
pub links_added: BTreeSet<ChannelId>,
pub links_removed: BTreeSet<ChannelId>,
}Expand description
A sparse channel change.
Links are carried as two explicit sets rather than as a replacement, because
the client treats a non-empty links list as a full replacement but ignores
an empty one entirely. Stating additions and removals separately makes the
patch composable across a replay and removes the need to know what the
connection currently holds.
REF: references/mumble/src/mumble/Messages.cpp : msgChannelState handles
links_remove and links_add in their own blocks, independent of links.
Fields§
§id: ChannelId§parent: Option<ChannelId>§name: Option<String>§position: Option<i32>§can_enter: Option<bool>§links_added: BTreeSet<ChannelId>§links_removed: BTreeSet<ChannelId>Implementations§
Trait Implementations§
Source§impl Clone for ChannelPatch
impl Clone for ChannelPatch
Source§fn clone(&self) -> ChannelPatch
fn clone(&self) -> ChannelPatch
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 ChannelPatch
impl Debug for ChannelPatch
Source§impl PartialEq for ChannelPatch
impl PartialEq for ChannelPatch
impl Eq for ChannelPatch
impl StructuralPartialEq for ChannelPatch
Auto Trait Implementations§
impl Freeze for ChannelPatch
impl RefUnwindSafe for ChannelPatch
impl Send for ChannelPatch
impl Sync for ChannelPatch
impl Unpin for ChannelPatch
impl UnwindSafe for ChannelPatch
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