pub struct EndpointToPartitions {
pub user_endpoint: Endpoint,
pub active_partitions: Vec<TopicPartition>,
pub standby_partitions: Vec<TopicPartition>,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§user_endpoint: EndpointUser-defined endpoint to connect to the node
active_partitions: Vec<TopicPartition>All topic partitions materialized by active tasks on the node
standby_partitions: Vec<TopicPartition>All topic partitions materialized by standby tasks on the node
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl EndpointToPartitions
impl EndpointToPartitions
pub fn with_user_endpoint(self, value: Endpoint) -> Self
pub fn with_active_partitions(self, value: Vec<TopicPartition>) -> Self
pub fn with_standby_partitions(self, value: Vec<TopicPartition>) -> Self
pub fn read(buf: &mut Bytes, version: i16) -> Result<Self>
pub fn write(&self, buf: &mut BytesMut, version: i16) -> Result<()>
pub fn encoded_len(&self, version: i16) -> Result<usize>
Trait Implementations§
Source§impl Clone for EndpointToPartitions
impl Clone for EndpointToPartitions
Source§fn clone(&self) -> EndpointToPartitions
fn clone(&self) -> EndpointToPartitions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EndpointToPartitions
impl Debug for EndpointToPartitions
Source§impl Default for EndpointToPartitions
impl Default for EndpointToPartitions
Source§impl PartialEq for EndpointToPartitions
impl PartialEq for EndpointToPartitions
Source§fn eq(&self, other: &EndpointToPartitions) -> bool
fn eq(&self, other: &EndpointToPartitions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EndpointToPartitions
Auto Trait Implementations§
impl !Freeze for EndpointToPartitions
impl RefUnwindSafe for EndpointToPartitions
impl Send for EndpointToPartitions
impl Sync for EndpointToPartitions
impl Unpin for EndpointToPartitions
impl UnsafeUnpin for EndpointToPartitions
impl UnwindSafe for EndpointToPartitions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more