pub struct Change { /* private fields */ }
Implementations§
Source§impl Change
impl Change
pub fn actor_id(&self) -> &ActorId
pub fn other_actor_ids(&self) -> &[ActorId]
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn max_op(&self) -> u64
pub fn start_op(&self) -> NonZeroU64
pub fn message(&self) -> Option<&String>
pub fn deps(&self) -> &[ChangeHash]
pub fn hash(&self) -> ChangeHash
pub fn seq(&self) -> u64
pub fn timestamp(&self) -> i64
pub fn bytes(&mut self) -> Cow<'_, [u8]>
pub fn raw_bytes(&self) -> &[u8] ⓘ
pub fn extra_bytes(&self) -> &[u8] ⓘ
pub fn from_bytes(bytes: Vec<u8>) -> Result<Self, LoadError>
pub fn decode(&self) -> ExpandedChange
Trait Implementations§
Source§impl From<&Change> for ExpandedChange
impl From<&Change> for ExpandedChange
Source§impl From<Change> for Change
impl From<Change> for Change
Source§fn from(e: ExpandedChange) -> Self
fn from(e: ExpandedChange) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Change
Auto Trait Implementations§
impl Freeze for Change
impl RefUnwindSafe for Change
impl Send for Change
impl Sync for Change
impl Unpin for Change
impl UnwindSafe for Change
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