[−][src]Struct thrussh::server::Handle
Handle to a session, used to send messages to a client outside of the request/response cycle.
Implementations
impl Handle
[src]
pub async fn data<'_>(
&'_ mut self,
id: ChannelId,
data: CryptoVec
) -> Result<(), CryptoVec>
[src]
&'_ mut self,
id: ChannelId,
data: CryptoVec
) -> Result<(), CryptoVec>
Send data to the session referenced by this handler.
pub async fn extended_data<'_>(
&'_ mut self,
id: ChannelId,
ext: u32,
data: CryptoVec
) -> Result<(), CryptoVec>
[src]
&'_ mut self,
id: ChannelId,
ext: u32,
data: CryptoVec
) -> Result<(), CryptoVec>
Send data to the session referenced by this handler.
pub async fn eof<'_>(&'_ mut self, id: ChannelId) -> Result<(), ()>
[src]
Send EOF to the session referenced by this handler.
pub async fn xon_xoff_request<'_>(
&'_ mut self,
id: ChannelId,
client_can_do: bool
) -> Result<(), ()>
[src]
&'_ mut self,
id: ChannelId,
client_can_do: bool
) -> Result<(), ()>
Inform the client of whether they may perform control-S/control-Q flow control. See RFC4254.
pub async fn exit_status_request<'_>(
&'_ mut self,
id: ChannelId,
exit_status: u32
) -> Result<(), ()>
[src]
&'_ mut self,
id: ChannelId,
exit_status: u32
) -> Result<(), ()>
Send the exit status of a program.
pub async fn exit_signal_request<'_>(
&'_ mut self,
id: ChannelId,
signal_name: Sig,
core_dumped: bool,
error_message: String,
lang_tag: String
) -> Result<(), ()>
[src]
&'_ mut self,
id: ChannelId,
signal_name: Sig,
core_dumped: bool,
error_message: String,
lang_tag: String
) -> Result<(), ()>
If the program was killed by a signal, send the details about the signal to the client.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Handle
impl Send for Handle
impl Sync for Handle
impl Unpin for Handle
impl !UnwindSafe for Handle
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,