pub struct AppendMeta {
pub fencing: Option<FencingToken>,
pub state: Option<StateDelta>,
}Expand description
Optional metadata of an append.
Fields§
§fencing: Option<FencingToken>The fencing token; None is an unfenced append, checked only by compare-and-set.
state: Option<StateDelta>The state changes to commit with the entries.
Implementations§
Source§impl AppendMeta
impl AppendMeta
Sourcepub fn with_fencing(self, token: FencingToken) -> Self
pub fn with_fencing(self, token: FencingToken) -> Self
This metadata with a fencing token.
Sourcepub fn with_state(self, delta: StateDelta) -> Self
pub fn with_state(self, delta: StateDelta) -> Self
This metadata with a state delta.
Trait Implementations§
Source§impl Clone for AppendMeta
impl Clone for AppendMeta
Source§impl Debug for AppendMeta
impl Debug for AppendMeta
Source§impl Default for AppendMeta
impl Default for AppendMeta
impl Eq for AppendMeta
Source§impl PartialEq for AppendMeta
impl PartialEq for AppendMeta
impl StructuralPartialEq for AppendMeta
Auto Trait Implementations§
impl Forget for AppendMeta
impl Freeze for AppendMeta
impl Move for AppendMeta
impl RefUnwindSafe for AppendMeta
impl Send for AppendMeta
impl Sync for AppendMeta
impl Unpin for AppendMeta
impl UnsafeUnpin for AppendMeta
impl UnwindSafe for AppendMeta
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