#[non_exhaustive]pub enum DrawingSyncOp {
Add {
key: SyncKey,
data: DrawingData,
visible: bool,
locked: bool,
},
Update {
key: SyncKey,
data: DrawingData,
},
SetVisible {
key: SyncKey,
visible: bool,
},
SetLocked {
key: SyncKey,
locked: bool,
},
Remove {
key: SyncKey,
},
}Expand description
A change of a synced drawing.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Add
A drawing was added (or is part of a full state).
Fields
§
data: DrawingDataIts saved form.
Update
A drawing was moved, restyled or given new parameters.
SetVisible
A drawing was shown or hidden.
SetLocked
A drawing was locked or unlocked.
Remove
A drawing was removed.
Implementations§
Trait Implementations§
Source§impl Clone for DrawingSyncOp
impl Clone for DrawingSyncOp
Source§impl Debug for DrawingSyncOp
impl Debug for DrawingSyncOp
Source§impl PartialEq for DrawingSyncOp
impl PartialEq for DrawingSyncOp
impl StructuralPartialEq for DrawingSyncOp
Auto Trait Implementations§
impl Forget for DrawingSyncOp
impl Freeze for DrawingSyncOp
impl Move for DrawingSyncOp
impl RefUnwindSafe for DrawingSyncOp
impl Send for DrawingSyncOp
impl Sync for DrawingSyncOp
impl Unpin for DrawingSyncOp
impl UnsafeUnpin for DrawingSyncOp
impl UnwindSafe for DrawingSyncOp
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