pub struct TcpSession {
pub fd: RawFd,
pub session_type: TcpSessionType,
pub local_addr: Option<SocketAddr>,
pub peer_addr: Option<SocketAddr>,
pub is_zftp: bool,
}Expand description
A TCP session
Fields§
§fd: RawFd§session_type: TcpSessionType§local_addr: Option<SocketAddr>§peer_addr: Option<SocketAddr>§is_zftp: boolImplementations§
Source§impl TcpSession
impl TcpSession
pub fn new(fd: RawFd, session_type: TcpSessionType) -> Self
pub fn type_char(&self) -> char
pub fn direction_str(&self) -> &'static str
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TcpSession
impl RefUnwindSafe for TcpSession
impl Send for TcpSession
impl Sync for TcpSession
impl Unpin for TcpSession
impl UnsafeUnpin for TcpSession
impl UnwindSafe for TcpSession
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more