Enum hstreamdb::SpecialOffset
source · pub enum SpecialOffset {
Earliest,
Latest,
}Variants§
Implementations§
source§impl SpecialOffset
impl SpecialOffset
source§impl SpecialOffset
impl SpecialOffset
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<SpecialOffset>
pub fn from_str_name(value: &str) -> Option<SpecialOffset>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for SpecialOffset
impl Clone for SpecialOffset
source§fn clone(&self) -> SpecialOffset
fn clone(&self) -> SpecialOffset
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 Debug for SpecialOffset
impl Debug for SpecialOffset
source§impl Default for SpecialOffset
impl Default for SpecialOffset
source§fn default() -> SpecialOffset
fn default() -> SpecialOffset
Returns the “default value” for a type. Read more
source§impl Hash for SpecialOffset
impl Hash for SpecialOffset
source§impl Ord for SpecialOffset
impl Ord for SpecialOffset
source§fn cmp(&self, other: &SpecialOffset) -> Ordering
fn cmp(&self, other: &SpecialOffset) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SpecialOffset> for SpecialOffset
impl PartialEq<SpecialOffset> for SpecialOffset
source§fn eq(&self, other: &SpecialOffset) -> bool
fn eq(&self, other: &SpecialOffset) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<SpecialOffset> for SpecialOffset
impl PartialOrd<SpecialOffset> for SpecialOffset
source§fn partial_cmp(&self, other: &SpecialOffset) -> Option<Ordering>
fn partial_cmp(&self, other: &SpecialOffset) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for SpecialOffset
impl Eq for SpecialOffset
impl StructuralEq for SpecialOffset
impl StructuralPartialEq for SpecialOffset
Auto Trait Implementations§
impl RefUnwindSafe for SpecialOffset
impl Send for SpecialOffset
impl Sync for SpecialOffset
impl Unpin for SpecialOffset
impl UnwindSafe for SpecialOffset
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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