pub struct LeaderEndpoint {
pub name: KafkaString,
pub host: KafkaString,
pub port: u16,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§name: KafkaStringThe name of the endpoint.
host: KafkaStringThe node’s hostname.
port: u16The node’s port.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl LeaderEndpoint
impl LeaderEndpoint
pub fn with_name(self, value: KafkaString) -> Self
pub fn with_host(self, value: KafkaString) -> Self
pub fn with_port(self, value: u16) -> 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 LeaderEndpoint
impl Clone for LeaderEndpoint
Source§fn clone(&self) -> LeaderEndpoint
fn clone(&self) -> LeaderEndpoint
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 LeaderEndpoint
impl Debug for LeaderEndpoint
Source§impl Default for LeaderEndpoint
impl Default for LeaderEndpoint
Source§impl PartialEq for LeaderEndpoint
impl PartialEq for LeaderEndpoint
Source§fn eq(&self, other: &LeaderEndpoint) -> bool
fn eq(&self, other: &LeaderEndpoint) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LeaderEndpoint
Auto Trait Implementations§
impl !Freeze for LeaderEndpoint
impl RefUnwindSafe for LeaderEndpoint
impl Send for LeaderEndpoint
impl Sync for LeaderEndpoint
impl Unpin for LeaderEndpoint
impl UnsafeUnpin for LeaderEndpoint
impl UnwindSafe for LeaderEndpoint
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