Struct mz_storage_client::controller::PersistEpoch
source · pub struct PersistEpoch(Option<NonZeroI64>);
Expand description
A wrapper struct that presents the adapter token to a format that is understandable by persist and also allows us to differentiate between a token being present versus being set for the first time.
Tuple Fields§
§0: Option<NonZeroI64>
Trait Implementations§
source§impl Clone for PersistEpoch
impl Clone for PersistEpoch
source§fn clone(&self) -> PersistEpoch
fn clone(&self) -> PersistEpoch
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Codec64 for PersistEpoch
impl Codec64 for PersistEpoch
source§impl Debug for PersistEpoch
impl Debug for PersistEpoch
source§impl From<NonZeroI64> for PersistEpoch
impl From<NonZeroI64> for PersistEpoch
source§fn from(epoch: NonZeroI64) -> Self
fn from(epoch: NonZeroI64) -> Self
Converts to this type from the input type.
source§impl Opaque for PersistEpoch
impl Opaque for PersistEpoch
source§impl PartialEq<PersistEpoch> for PersistEpoch
impl PartialEq<PersistEpoch> for PersistEpoch
source§fn eq(&self, other: &PersistEpoch) -> bool
fn eq(&self, other: &PersistEpoch) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PersistEpoch
Auto Trait Implementations§
impl RefUnwindSafe for PersistEpoch
impl Send for PersistEpoch
impl Sync for PersistEpoch
impl Unpin for PersistEpoch
impl UnwindSafe for PersistEpoch
Blanket Implementations§
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.