pub struct ConnectionInfo { /* private fields */ }Expand description
Connection information.
Implementations§
Source§impl ConnectionInfo
impl ConnectionInfo
Sourcepub fn new<T>(network_type: NetworkType, address: T) -> Selfwhere
T: Into<ConnectionAddress>,
pub fn new<T>(network_type: NetworkType, address: T) -> Selfwhere
T: Into<ConnectionAddress>,
Create a new connection info.
Sourcepub fn network_type(&self) -> &NetworkType
pub fn network_type(&self) -> &NetworkType
Get the network type.
Sourcepub fn address(&self) -> &ConnectionAddress
pub fn address(&self) -> &ConnectionAddress
Get the connection address.
Trait Implementations§
Source§impl Clone for ConnectionInfo
impl Clone for ConnectionInfo
Source§fn clone(&self) -> ConnectionInfo
fn clone(&self) -> ConnectionInfo
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 Display for ConnectionInfo
impl Display for ConnectionInfo
Auto Trait Implementations§
impl Freeze for ConnectionInfo
impl RefUnwindSafe for ConnectionInfo
impl Send for ConnectionInfo
impl Sync for ConnectionInfo
impl Unpin for ConnectionInfo
impl UnwindSafe for ConnectionInfo
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