[][src]Struct flv_api_sc::topic::FlvFetchTopicResponse

pub struct FlvFetchTopicResponse {
    pub error_code: FlvErrorCode,
    pub name: String,
    pub topic: Option<FlvFetchTopic>,
}

Fields

error_code: FlvErrorCode

The error code, None for no errors

name: String

The name of the topic.

topic: Option<FlvFetchTopic>

Topic parameters, None if error

Implementations

impl FlvFetchTopicResponse[src]

pub fn new(
    name: String,
    spec: TopicSpec,
    status: TopicStatus,
    partition_replicas: Option<Vec<FlvPartitionReplica>>
) -> Self
[src]

Constructor for topics found

pub fn new_not_found(name: String) -> Self[src]

Constructor for topics that are not found

pub fn update_partitions(
    &mut self,
    partition_replicas: Option<Vec<FlvPartitionReplica>>
)
[src]

Update topic partitions. Requirements:

  • Must be called with valid topic, otherwise, update will fail silently

Trait Implementations

impl Debug for FlvFetchTopicResponse[src]

impl Decoder for FlvFetchTopicResponse[src]

impl Default for FlvFetchTopicResponse[src]

impl Encoder for FlvFetchTopicResponse[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, U> Into<U> for T where
    U: From<T>, 
[src]

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.