#[non_exhaustive]pub struct HostAddress {
pub hostname: String,
pub port: i32,
/* private fields */
}
Expand description
A HostAddress represents a transport end point, which is the combination of an IP address or hostname and a port number.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.hostname: String
Required. Hostname for the connection.
port: i32
Optional. Port for the connection.
Implementations§
Trait Implementations§
Source§impl Clone for HostAddress
impl Clone for HostAddress
Source§fn clone(&self) -> HostAddress
fn clone(&self) -> HostAddress
Returns a duplicate of the value. Read more
1.0.0 · 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 HostAddress
impl Debug for HostAddress
Source§impl Default for HostAddress
impl Default for HostAddress
Source§fn default() -> HostAddress
fn default() -> HostAddress
Returns the “default value” for a type. Read more
Source§impl Message for HostAddress
impl Message for HostAddress
Source§impl PartialEq for HostAddress
impl PartialEq for HostAddress
impl StructuralPartialEq for HostAddress
Auto Trait Implementations§
impl Freeze for HostAddress
impl RefUnwindSafe for HostAddress
impl Send for HostAddress
impl Sync for HostAddress
impl Unpin for HostAddress
impl UnwindSafe for HostAddress
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