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