[−][src]Struct flv_api_sc::topic::FlvFetchTopicResponse
Fields
error_code: FlvErrorCodeThe error code, None for no errors
name: StringThe 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]
name: String,
spec: TopicSpec,
status: TopicStatus,
partition_replicas: Option<Vec<FlvPartitionReplica>>
) -> Self
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]
&mut self,
partition_replicas: Option<Vec<FlvPartitionReplica>>
)
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]
fn decode<T>(&mut self, src: &mut T, version: Version) -> Result<(), Error> where
T: Buf, [src]
T: Buf,
fn decode_from<T>(src: &mut T, version: i16) -> Result<Self, Error> where
Self: Default,
T: Buf,
Self: Default,
T: Buf,
impl Default for FlvFetchTopicResponse[src]
fn default() -> FlvFetchTopicResponse[src]
impl Encoder for FlvFetchTopicResponse[src]
Auto Trait Implementations
impl RefUnwindSafe for FlvFetchTopicResponse
impl Send for FlvFetchTopicResponse
impl Sync for FlvFetchTopicResponse
impl Unpin for FlvFetchTopicResponse
impl UnwindSafe for FlvFetchTopicResponse
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,