Struct ssh::LocalChannel
source · pub struct LocalChannel<S>{ /* private fields */ }
Implementations§
source§impl<S> Channel<S>
impl<S> Channel<S>
sourcepub fn exec(self) -> SshResult<ChannelExec<S>>
pub fn exec(self) -> SshResult<ChannelExec<S>>
convert the raw channel to an self::ChannelExec
sourcepub fn shell(self, tv: TerminalSize) -> SshResult<ChannelShell<S>>
pub fn shell(self, tv: TerminalSize) -> SshResult<ChannelShell<S>>
convert the raw channel to an self::ChannelShell
with row
lines & column
characters per one line
sourcepub fn exit_status(&self) -> SshResult<u32>
pub fn exit_status(&self) -> SshResult<u32>
https://datatracker.ietf.org/doc/html/rfc4254#section-6.10
Return the command execute status
sourcepub fn terminate_msg(&self) -> SshResult<String>
pub fn terminate_msg(&self) -> SshResult<String>
https://datatracker.ietf.org/doc/html/rfc4254#section-6.10
Return the terminate message if the command excution was ‘killed’ by a signal
Auto Trait Implementations§
impl<S> !RefUnwindSafe for Channel<S>
impl<S> !Send for Channel<S>
impl<S> !Sync for Channel<S>
impl<S> Unpin for Channel<S>
impl<S> !UnwindSafe for Channel<S>
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