pub enum Operation {
InsertStroke {
id: OpId,
origin_left: OpId,
origin_right: OpId,
data: StrokeData,
properties: StrokeProperties,
},
DeleteStroke {
id: OpId,
target: StrokeId,
},
UpdateProperty {
id: OpId,
target: StrokeId,
update: PropertyUpdate,
},
UpdateMetadata {
id: OpId,
key: MetadataKey,
value: Option<MetadataValue>,
},
}Expand description
A serializable operation. This is what travels over the network and is stored in the op-log.
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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