pub struct GroupStateKey(/* private fields */);Implementations§
Source§impl GroupStateKey
impl GroupStateKey
pub fn new(group: GroupId, keyspace: Keyspace, suffix: impl AsRef<[u8]>) -> Self
pub fn root(keyspace: Keyspace, suffix: impl AsRef<[u8]>) -> Self
pub fn from_framed(key: EncodedKey) -> Option<Self>
pub fn bound_unchecked(key: EncodedKey) -> Self
pub fn as_encoded(&self) -> &EncodedKey
pub fn into_encoded(self) -> EncodedKey
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn as_bytes(&self) -> &[u8] ⓘ
pub fn group(&self) -> Option<GroupId>
pub fn keyspace(&self) -> Option<Keyspace>
Trait Implementations§
Source§impl AsRef<EncodedKey> for GroupStateKey
impl AsRef<EncodedKey> for GroupStateKey
Source§fn as_ref(&self) -> &EncodedKey
fn as_ref(&self) -> &EncodedKey
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<[u8]> for GroupStateKey
impl AsRef<[u8]> for GroupStateKey
Source§impl Clone for GroupStateKey
impl Clone for GroupStateKey
Source§fn clone(&self) -> GroupStateKey
fn clone(&self) -> GroupStateKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GroupStateKey
impl Debug for GroupStateKey
impl Eq for GroupStateKey
Source§impl Hash for GroupStateKey
impl Hash for GroupStateKey
Source§impl IntoGroupStateKey for GroupStateKey
impl IntoGroupStateKey for GroupStateKey
fn into_group_state_key(self) -> GroupStateKey
Source§impl Ord for GroupStateKey
impl Ord for GroupStateKey
Source§fn cmp(&self, other: &GroupStateKey) -> Ordering
fn cmp(&self, other: &GroupStateKey) -> Ordering
1.21.0 (const: unstable) · 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 for GroupStateKey
impl PartialEq for GroupStateKey
Source§impl PartialOrd for GroupStateKey
impl PartialOrd for GroupStateKey
impl StructuralPartialEq for GroupStateKey
Auto Trait Implementations§
impl Freeze for GroupStateKey
impl RefUnwindSafe for GroupStateKey
impl Send for GroupStateKey
impl Sync for GroupStateKey
impl Unpin for GroupStateKey
impl UnsafeUnpin for GroupStateKey
impl UnwindSafe for GroupStateKey
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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<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§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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more