pub enum OperationSource {
User,
Sync,
Capability(CapabilityId),
}Expand description
Source of an operation - tracks where it originated
Variants§
User
User-initiated operation (canonical)
Sync
Operation from sync/remote peer (canonical)
Capability(CapabilityId)
Operation derived from a capability (derived)
Implementations§
Source§impl OperationSource
impl OperationSource
Sourcepub fn is_canonical(&self) -> bool
pub fn is_canonical(&self) -> bool
Check if this source represents canonical state
Sourcepub fn is_derived(&self) -> bool
pub fn is_derived(&self) -> bool
Check if this source represents derived state
Trait Implementations§
Source§impl Clone for OperationSource
impl Clone for OperationSource
Source§impl Debug for OperationSource
impl Debug for OperationSource
Source§impl<'de> Deserialize<'de> for OperationSource
impl<'de> Deserialize<'de> for OperationSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for OperationSource
impl Display for OperationSource
impl Eq for OperationSource
Source§impl PartialEq for OperationSource
impl PartialEq for OperationSource
Source§impl Serialize for OperationSource
impl Serialize for OperationSource
impl StructuralPartialEq for OperationSource
Auto Trait Implementations§
impl Freeze for OperationSource
impl RefUnwindSafe for OperationSource
impl Send for OperationSource
impl Sync for OperationSource
impl Unpin for OperationSource
impl UnsafeUnpin for OperationSource
impl UnwindSafe for OperationSource
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