pub enum PlanOp {
CreateChannel(Channel),
UpdateChannel(ChannelPatch),
AddUser(User),
MoveUser {
session: SessionId,
channel: ChannelId,
},
UpdateUser(UserPatch),
RemoveUser(SessionId),
RemoveChannel(ChannelId),
}Expand description
One view mutation. Not a Mumble message: spelling these on the wire is
crate::emit’s job.
Variants§
CreateChannel(Channel)
UpdateChannel(ChannelPatch)
AddUser(User)
MoveUser
UpdateUser(UserPatch)
RemoveUser(SessionId)
RemoveChannel(ChannelId)
Implementations§
Source§impl PlanOp
impl PlanOp
Sourcepub fn added(&self) -> Option<ElementId>
pub fn added(&self) -> Option<ElementId>
The element this operation brings into existence, if any.
Sourcepub fn is_removal(&self) -> bool
pub fn is_removal(&self) -> bool
Whether this operation belongs to the removal phases (P6, P7).
crate::compose::splice uses this to find where the overlay’s
operations have to be inserted.
Trait Implementations§
impl Eq for PlanOp
impl StructuralPartialEq for PlanOp
Auto Trait Implementations§
impl Freeze for PlanOp
impl RefUnwindSafe for PlanOp
impl Send for PlanOp
impl Sync for PlanOp
impl Unpin for PlanOp
impl UnwindSafe for PlanOp
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