Struct fluvio::metadata::partition::PartitionSpec[]

pub struct PartitionSpec {
    pub leader: i32,
    pub replicas: Vec<i32, Global>,
}

Spec for Partition Each partition has replicas spread among SPU one of replica is leader which is duplicated in the leader field

Fields

leader: i32replicas: Vec<i32, Global>

Implementations

impl PartitionSpec

pub fn new(leader: i32, replicas: Vec<i32, Global>) -> PartitionSpec

pub fn has_spu(&self, spu: &i32) -> bool

pub fn followers(&self) -> Vec<i32, Global>

follower replicas

Trait Implementations

impl Clone for PartitionSpec

impl Debug for PartitionSpec

impl Decoder for PartitionSpec

impl Default for PartitionSpec

impl Encoder for PartitionSpec

impl From<Vec<i32, Global>> for PartitionSpec

impl ListSpec for PartitionSpec[src]

type Filter = String

filter type

impl PartialEq<PartitionSpec> for PartitionSpec

impl Spec for PartitionSpec

type IndexKey = ReplicaKey

type Status = PartitionStatus

type Owner = TopicSpec

impl SpecExt for PartitionSpec

impl StructuralPartialEq for PartitionSpec

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithSubscriber for T[src]