Enum tentacle::service::SessionType
source · pub enum SessionType {
Outbound,
Inbound,
}
Expand description
Indicates the session type
Variants§
Outbound
Representing yourself as the active party means that you are the client side
Inbound
Representing yourself as a passive recipient means that you are the server side
Implementations§
source§impl SessionType
impl SessionType
sourcepub fn is_outbound(self) -> bool
pub fn is_outbound(self) -> bool
is outbound
sourcepub fn is_inbound(self) -> bool
pub fn is_inbound(self) -> bool
is inbound
Trait Implementations§
source§impl Clone for SessionType
impl Clone for SessionType
source§fn clone(&self) -> SessionType
fn clone(&self) -> SessionType
Returns a copy 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 SessionType
impl Debug for SessionType
source§impl From<SessionType> for SessionType
impl From<SessionType> for SessionType
source§impl From<SessionType> for YamuxType
impl From<SessionType> for YamuxType
source§fn from(ty: SessionType) -> YamuxType
fn from(ty: SessionType) -> YamuxType
Converts to this type from the input type.
source§impl Hash for SessionType
impl Hash for SessionType
source§impl PartialEq<SessionType> for SessionType
impl PartialEq<SessionType> for SessionType
source§fn eq(&self, other: &SessionType) -> bool
fn eq(&self, other: &SessionType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.