pub enum Command {
Fence {
fencing_token: FencingToken,
},
Trim {
seq_num: u64,
},
}
Expand description
Command to send through a CommandRecord
.
Variants§
Fence
Enforce a fencing token.
Fencing is strongly consistent, and subsequent appends that specify a fencing token will be rejected if it does not match.
Fields
§
fencing_token: FencingToken
Fencing token to enforce.
Set empty to clear the token.
Trim
Request a trim till the sequence number.
Trimming is eventually consistent, and trimmed records may be visible for a brief period
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request