pub struct Change { /* private fields */ }Implementations§
Source§impl Change
impl Change
pub fn actor_id(&self) -> &ActorId
pub fn actors(&self) -> impl Iterator<Item = &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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more