[][src]Struct fluvio_sc_schema::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[src]

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

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

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

follower replicas

Trait Implementations

impl Clone for PartitionSpec[src]

impl Debug for PartitionSpec[src]

impl Decoder for PartitionSpec[src]

impl Default for PartitionSpec[src]

impl Encoder for PartitionSpec[src]

impl From<Vec<i32, Global>> for PartitionSpec[src]

impl ListSpec for PartitionSpec[src]

type Filter = NameFilter

filter type

impl PartialEq<PartitionSpec> for PartitionSpec[src]

impl Spec for PartitionSpec[src]

type IndexKey = ReplicaKey

type Status = PartitionStatus

type Owner = TopicSpec

impl SpecExt for PartitionSpec[src]

impl StructuralPartialEq for PartitionSpec[src]

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> From<T> 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.