pub struct ReplicaKey {
pub topic: String,
pub partition: u32,
}
Fields§
§topic: String
§partition: u32
Implementations§
Trait Implementations§
Source§impl Clone for ReplicaKey
impl Clone for ReplicaKey
Source§fn clone(&self) -> ReplicaKey
fn clone(&self) -> ReplicaKey
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ReplicaKey
impl Debug for ReplicaKey
Source§impl Decoder for ReplicaKey
impl Decoder for ReplicaKey
Source§impl Default for ReplicaKey
impl Default for ReplicaKey
Source§fn default() -> ReplicaKey
fn default() -> ReplicaKey
Returns the “default value” for a type. Read more
Source§impl Display for ReplicaKey
impl Display for ReplicaKey
Source§impl Encoder for ReplicaKey
impl Encoder for ReplicaKey
Source§impl<S> From<(S, u32)> for ReplicaKey
impl<S> From<(S, u32)> for ReplicaKey
Source§fn from(key: (S, u32)) -> ReplicaKey
fn from(key: (S, u32)) -> ReplicaKey
Converts to this type from the input type.
Source§impl FromStr for ReplicaKey
impl FromStr for ReplicaKey
Source§type Err = PartitionError
type Err = PartitionError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<ReplicaKey, <ReplicaKey as FromStr>::Err>
fn from_str(s: &str) -> Result<ReplicaKey, <ReplicaKey as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moreSource§impl Hash for ReplicaKey
impl Hash for ReplicaKey
Source§impl Ord for ReplicaKey
impl Ord for ReplicaKey
Source§fn cmp(&self, other: &ReplicaKey) -> Ordering
fn cmp(&self, other: &ReplicaKey) -> 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 for ReplicaKey
impl PartialEq for ReplicaKey
Source§impl PartialOrd for ReplicaKey
impl PartialOrd for ReplicaKey
Source§impl TryFrom<String> for ReplicaKey
impl TryFrom<String> for ReplicaKey
Source§type Error = PartitionError
type Error = PartitionError
The type returned in the event of a conversion error.
Source§fn try_from(value: String) -> Result<ReplicaKey, PartitionError>
fn try_from(value: String) -> Result<ReplicaKey, PartitionError>
Performs the conversion.
impl Eq for ReplicaKey
impl Send for ReplicaKey
impl StructuralPartialEq for ReplicaKey
impl Sync for ReplicaKey
Auto Trait Implementations§
impl Freeze for ReplicaKey
impl RefUnwindSafe for ReplicaKey
impl Unpin for ReplicaKey
impl UnwindSafe for ReplicaKey
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§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.