pub enum ConnectionTo {
Local(Addr),
Remote(String),
}Variants§
Implementations§
Source§impl ConnectionTo
impl ConnectionTo
Sourcepub fn into_remote(self) -> Option<String>
Available on crate feature unstable only.
pub fn into_remote(self) -> Option<String>
unstable only.§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Trait Implementations§
Source§impl Clone for ConnectionTo
impl Clone for ConnectionTo
Source§fn clone(&self) -> ConnectionTo
fn clone(&self) -> ConnectionTo
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 moreAuto Trait Implementations§
impl Freeze for ConnectionTo
impl RefUnwindSafe for ConnectionTo
impl Send for ConnectionTo
impl Sync for ConnectionTo
impl Unpin for ConnectionTo
impl UnsafeUnpin for ConnectionTo
impl UnwindSafe for ConnectionTo
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