pub struct ServerAddress {
pub host: String,
pub port: u16,
}
Fields§
§host: String
§port: u16
Implementations§
Trait Implementations§
Source§impl Clone for ServerAddress
impl Clone for ServerAddress
Source§fn clone(&self) -> ServerAddress
fn clone(&self) -> ServerAddress
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 ServerAddress
impl Debug for ServerAddress
Source§impl Display for ServerAddress
impl Display for ServerAddress
Source§impl PartialEq for ServerAddress
impl PartialEq for ServerAddress
Source§impl TryFrom<ServerAddress> for SocketAddr
impl TryFrom<ServerAddress> for SocketAddr
Source§impl TryFrom<String> for ServerAddress
impl TryFrom<String> for ServerAddress
impl StructuralPartialEq for ServerAddress
Auto Trait Implementations§
impl Freeze for ServerAddress
impl RefUnwindSafe for ServerAddress
impl Send for ServerAddress
impl Sync for ServerAddress
impl Unpin for ServerAddress
impl UnwindSafe for ServerAddress
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