Enum distant_core::SessionDetails
source · [−]pub enum SessionDetails {
Tcp {
addr: SocketAddr,
tag: String,
},
Socket {
path: PathBuf,
tag: String,
},
Inmemory {
tag: String,
},
Custom {
tag: String,
},
}Expand description
Details about the session
Variants
Tcp
Indicates session is a TCP type
Socket
Indicates session is a Unix socket type
Inmemory
Fields
tag: StringIndicates session type is inmemory
Custom
Fields
tag: StringIndicates session type is a custom type (such as ssh)
Implementations
sourceimpl SessionDetails
impl SessionDetails
sourcepub fn addr(&self) -> Option<SocketAddr>
pub fn addr(&self) -> Option<SocketAddr>
Represents the socket address associated with the session, if it has one
Trait Implementations
sourceimpl Clone for SessionDetails
impl Clone for SessionDetails
sourcefn clone(&self) -> SessionDetails
fn clone(&self) -> SessionDetails
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for SessionDetails
impl Debug for SessionDetails
sourceimpl<'de> Deserialize<'de> for SessionDetails
impl<'de> Deserialize<'de> for SessionDetails
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<SessionDetails> for SessionDetails
impl PartialEq<SessionDetails> for SessionDetails
sourcefn eq(&self, other: &SessionDetails) -> bool
fn eq(&self, other: &SessionDetails) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &SessionDetails) -> bool
fn ne(&self, other: &SessionDetails) -> bool
This method tests for !=.
sourceimpl Serialize for SessionDetails
impl Serialize for SessionDetails
impl Eq for SessionDetails
impl StructuralEq for SessionDetails
impl StructuralPartialEq for SessionDetails
Auto Trait Implementations
impl RefUnwindSafe for SessionDetails
impl Send for SessionDetails
impl Sync for SessionDetails
impl Unpin for SessionDetails
impl UnwindSafe for SessionDetails
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more