pub enum ChannelKind {
Direct,
Forwarded,
Dynamic,
Other,
}Expand description
What kind of ssh channel this event belongs to. The bracketed token
after channel N: new in ssh -v output (“port listener”,
“direct-tcpip”, “dynamic-tcpip” etc.) maps onto these variants.
Only Direct, Forwarded and Dynamic represent end-user traffic;
the rest are ssh-internal bookkeeping (the listener that binds the
local port, mux master channels, agent forwarding) and are filtered
out before rendering the EVENTS card.
Variants§
Direct
direct-tcpip — outgoing client connection through a LocalForward.
Forwarded
forwarded-tcpip — incoming client connection arriving via a
RemoteForward.
Dynamic
dynamic-tcpip — single SOCKS request through a DynamicForward.
Other
Anything else (port listener, client-session, mux-master,
auth-agent@openssh.com, x11, …).
Implementations§
Source§impl ChannelKind
impl ChannelKind
Sourcepub fn from_bracket(token: &str) -> Self
pub fn from_bracket(token: &str) -> Self
Parse the bracketed token from a channel N: new [<type>] line.
Sourcepub fn is_user_visible(self) -> bool
pub fn is_user_visible(self) -> bool
True if this kind represents end-user traffic that should appear in the EVENTS card.
Trait Implementations§
Source§impl Clone for ChannelKind
impl Clone for ChannelKind
Source§fn clone(&self) -> ChannelKind
fn clone(&self) -> ChannelKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ChannelKind
impl Debug for ChannelKind
Source§impl PartialEq for ChannelKind
impl PartialEq for ChannelKind
impl Copy for ChannelKind
impl Eq for ChannelKind
impl StructuralPartialEq for ChannelKind
Auto Trait Implementations§
impl Freeze for ChannelKind
impl RefUnwindSafe for ChannelKind
impl Send for ChannelKind
impl Sync for ChannelKind
impl Unpin for ChannelKind
impl UnsafeUnpin for ChannelKind
impl UnwindSafe for ChannelKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
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>
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