Struct mz_persist_client::ShardId
source · pub struct ShardId(/* private fields */);
Expand description
An opaque identifier for a persist durable TVC (aka shard).
The std::string::ToString::to_string format of this may be stored durably or otherwise used as an interchange format. It can be parsed back using str::parse or std::str::FromStr::from_str.
Implementations§
Trait Implementations§
source§impl Arbitrary for ShardId
impl Arbitrary for ShardId
§type Parameters = <[u8; 16] as Arbitrary>::Parameters
type Parameters = <[u8; 16] as Arbitrary>::Parameters
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = Map<<[u8; 16] as Arbitrary>::Strategy, fn(_: [u8; 16]) -> ShardId>
type Strategy = Map<<[u8; 16] as Arbitrary>::Strategy, fn(_: [u8; 16]) -> ShardId>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(
_top: <ShardId as Arbitrary>::Parameters
) -> <ShardId as Arbitrary>::Strategy
fn arbitrary_with( _top: <ShardId as Arbitrary>::Parameters ) -> <ShardId as Arbitrary>::Strategy
source§impl Codec for ShardId
impl Codec for ShardId
§type Storage = ()
type Storage = ()
A type used with Self::decode_from for allocation reuse. Set to
()
if unnecessary.§type Schema = ShardIdSchema
type Schema = ShardIdSchema
source§fn codec_name() -> String
fn codec_name() -> String
Name of the codec. Read more
source§fn encode<B>(&self, buf: &mut B)where
B: BufMut,
fn encode<B>(&self, buf: &mut B)where
B: BufMut,
Encode a key or value for permanent storage. Read more
source§impl<'de> Deserialize<'de> for ShardId
impl<'de> Deserialize<'de> for ShardId
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ShardId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ShardId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for ShardId
impl Ord for ShardId
source§impl PartialEq for ShardId
impl PartialEq for ShardId
source§impl PartialOrd for ShardId
impl PartialOrd for ShardId
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 moresource§impl RustType<String> for ShardId
impl RustType<String> for ShardId
source§fn into_proto(&self) -> String
fn into_proto(&self) -> String
Convert a
Self
into a Proto
value.source§fn from_proto(proto: String) -> Result<ShardId, TryFromProtoError>
fn from_proto(proto: String) -> Result<ShardId, TryFromProtoError>
source§impl Serialize for ShardId
impl Serialize for ShardId
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for ShardId
impl Eq for ShardId
impl StructuralPartialEq for ShardId
Auto Trait Implementations§
impl RefUnwindSafe for ShardId
impl Send for ShardId
impl Sync for ShardId
impl Unpin for ShardId
impl UnwindSafe for ShardId
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<R, O, T> CopyOnto<ConsecutiveOffsetPairs<R, O>> for T
impl<R, O, T> CopyOnto<ConsecutiveOffsetPairs<R, O>> for T
source§fn copy_onto(
self,
target: &mut ConsecutiveOffsetPairs<R, O>
) -> <ConsecutiveOffsetPairs<R, O> as Region>::Index
fn copy_onto( self, target: &mut ConsecutiveOffsetPairs<R, O> ) -> <ConsecutiveOffsetPairs<R, O> as Region>::Index
Copy self into the target container, returning an index that allows to
look up the corresponding read item.
source§impl<T> CopyOnto<MirrorRegion<T>> for Twhere
T: Index,
impl<T> CopyOnto<MirrorRegion<T>> for Twhere
T: Index,
source§fn copy_onto(self, _target: &mut MirrorRegion<T>) -> T
fn copy_onto(self, _target: &mut MirrorRegion<T>) -> T
Copy self into the target container, returning an index that allows to
look up the corresponding read item.
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> 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
Creates a shared type from an unshared type.
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> PreferredContainer for T
impl<T> PreferredContainer for T
source§impl<T> ProgressEventTimestamp for T
impl<T> ProgressEventTimestamp 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
.source§impl<T> ReserveItems<MirrorRegion<T>> for Twhere
T: Index,
impl<T> ReserveItems<MirrorRegion<T>> for Twhere
T: Index,
source§fn reserve_items<I>(_target: &mut MirrorRegion<T>, _items: I)
fn reserve_items<I>(_target: &mut MirrorRegion<T>, _items: I)
Ensure that the region can absorb
items
without reallocation.