pub struct SshSession {Show 15 fields
pub session_id: u32,
pub state: SessionState,
pub auth: AuthState,
pub kex: KexState,
pub transport_keys: TransportKeys,
pub algorithms: NegotiatedAlgorithms,
pub channels: ChannelTable,
pub shell_sessions: BTreeMap<u32, ShellSession>,
pub session_hash: [u8; 32],
pub client_version: Vec<u8>,
pub server_version: Vec<u8>,
pub client_kexinit: Vec<u8>,
pub server_kexinit: Vec<u8>,
pub send_seq: u32,
pub recv_seq: u32,
}Expand description
SSH session (one per connected client)
Fields§
§session_id: u32Unique session identifier
state: SessionStateCurrent state
auth: AuthStateAuthentication state
kex: KexStateKey exchange state
transport_keys: TransportKeysTransport keys (after key exchange)
algorithms: NegotiatedAlgorithmsNegotiated algorithms
channels: ChannelTableChannel table
shell_sessions: BTreeMap<u32, ShellSession>Shell sessions indexed by channel ID
session_hash: [u8; 32]Session ID (exchange hash of first key exchange)
client_version: Vec<u8>Client version string
server_version: Vec<u8>Server version string
client_kexinit: Vec<u8>Client KEXINIT payload (for exchange hash computation)
server_kexinit: Vec<u8>Server KEXINIT payload (for exchange hash computation)
send_seq: u32Packet sequence number (send)
recv_seq: u32Packet sequence number (recv)
Implementations§
Source§impl SshSession
impl SshSession
Trait Implementations§
Source§impl Clone for SshSession
impl Clone for SshSession
Source§fn clone(&self) -> SshSession
fn clone(&self) -> SshSession
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SshSession
impl Debug for SshSession
Source§impl PartialEq for SshSession
impl PartialEq for SshSession
impl Eq for SshSession
impl StructuralPartialEq for SshSession
Auto Trait Implementations§
impl Freeze for SshSession
impl RefUnwindSafe for SshSession
impl Send for SshSession
impl Sync for SshSession
impl Unpin for SshSession
impl UnwindSafe for SshSession
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)