pub struct Channel {Show 14 fields
pub local_id: u32,
pub remote_id: u32,
pub channel_type: ChannelType,
pub state: ChannelState,
pub local_window: u32,
pub remote_window: u32,
pub local_max_packet: u32,
pub remote_max_packet: u32,
pub pty_allocated: bool,
pub pty_info: Option<PtyInfo>,
pub session_started: bool,
pub env_vars: Vec<(Vec<u8>, Vec<u8>)>,
pub eof_received: bool,
pub eof_sent: bool,
}Expand description
SSH channel
Fields§
§local_id: u32Local channel ID
remote_id: u32Remote (peer) channel ID
channel_type: ChannelTypeChannel type
state: ChannelStateCurrent state
local_window: u32Local window size remaining (how much data we can receive)
remote_window: u32Remote window size remaining (how much data we can send)
local_max_packet: u32Local maximum packet size
remote_max_packet: u32Remote maximum packet size
pty_allocated: boolWhether a PTY has been allocated
pty_info: Option<PtyInfo>Associated PTY info (if allocated)
session_started: boolWhether a shell or exec has been started
env_vars: Vec<(Vec<u8>, Vec<u8>)>Environment variables set via “env” requests
eof_received: boolEOF received from remote
eof_sent: boolEOF sent to remote
Implementations§
Trait Implementations§
impl Eq for Channel
impl StructuralPartialEq for Channel
Auto Trait Implementations§
impl Freeze for Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnwindSafe for Channel
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)