pub struct Patch<T>(/* private fields */);Expand description
Patch wraps a changeset of events to be sent across the network.
Implementations§
Source§impl<T> Patch<T>
impl<T> Patch<T>
Sourcepub fn new(records: Vec<EventRecord>) -> Self
pub fn new(records: Vec<EventRecord>) -> Self
Create a new patch from event records.
Sourcepub fn iter(&self) -> impl Iterator<Item = &EventRecord>
pub fn iter(&self) -> impl Iterator<Item = &EventRecord>
Iterator of the event records.
Sourcepub fn records(&self) -> &[EventRecord]
pub fn records(&self) -> &[EventRecord]
Mutable event records.
Trait Implementations§
impl<T: Eq> Eq for Patch<T>
impl<T> StructuralPartialEq for Patch<T>
Auto Trait Implementations§
impl<T> Freeze for Patch<T>
impl<T> RefUnwindSafe for Patch<T>where
T: RefUnwindSafe,
impl<T> Send for Patch<T>where
T: Send,
impl<T> Sync for Patch<T>where
T: Sync,
impl<T> Unpin for Patch<T>where
T: Unpin,
impl<T> UnwindSafe for Patch<T>where
T: UnwindSafe,
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