pub struct Endpoint {
pub name: KafkaString,
pub host: KafkaString,
pub port: u16,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§name: KafkaStringThe name of the endpoint.
host: KafkaStringThe hostname.
port: u16The port.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl Endpoint
impl Endpoint
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§
impl StructuralPartialEq for Endpoint
Auto Trait Implementations§
impl !Freeze for Endpoint
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnsafeUnpin for Endpoint
impl UnwindSafe for Endpoint
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