Struct fluvio::metadata::partition::PartitionSpec [−]
Expand description
Spec for Partition Each partition has replicas spread among SPU one of replica is leader which is duplicated in the leader field
Fields
leader: i32
replicas: Vec<i32, Global>
Implementations
impl PartitionSpec
impl PartitionSpec
Trait Implementations
impl Clone for PartitionSpec
impl Clone for PartitionSpec
pub fn clone(&self) -> PartitionSpec
pub fn clone(&self) -> PartitionSpec
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for PartitionSpec
impl Debug for PartitionSpec
impl Decoder for PartitionSpec
impl Decoder for PartitionSpec
impl Default for PartitionSpec
impl Default for PartitionSpec
pub fn default() -> PartitionSpec
pub fn default() -> PartitionSpec
Returns the “default value” for a type. Read more
impl Encoder for PartitionSpec
impl Encoder for PartitionSpec
impl From<Vec<i32, Global>> for PartitionSpec
impl From<Vec<i32, Global>> for PartitionSpec
pub fn from(replicas: Vec<i32, Global>) -> PartitionSpec
pub fn from(replicas: Vec<i32, Global>) -> PartitionSpec
Performs the conversion.
pub fn into_list_request(
filters: Vec<<PartitionSpec as ListSpec>::Filter, Global>
) -> ListRequest
pub fn into_list_request(
filters: Vec<<PartitionSpec as ListSpec>::Filter, Global>
) -> ListRequest
convert to list request with filters
impl PartialEq<PartitionSpec> for PartitionSpec
impl PartialEq<PartitionSpec> for PartitionSpec
pub fn eq(&self, other: &PartitionSpec) -> bool
pub fn eq(&self, other: &PartitionSpec) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &PartitionSpec) -> bool
pub fn ne(&self, other: &PartitionSpec) -> bool
This method tests for !=
.
impl Spec for PartitionSpec
impl Spec for PartitionSpec
type IndexKey = ReplicaKey
type Status = PartitionStatus
impl SpecExt for PartitionSpec
impl SpecExt for PartitionSpec
pub const OBJECT_TYPE: ObjectType
impl StructuralPartialEq for PartitionSpec
Auto Trait Implementations
impl RefUnwindSafe for PartitionSpec
impl Send for PartitionSpec
impl Sync for PartitionSpec
impl Unpin for PartitionSpec
impl UnwindSafe for PartitionSpec
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more