[−][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
[src]
impl Send for Handle
[src]
impl Sync for Handle
[src]
impl Unpin for Handle
[src]
impl !UnwindSafe for Handle
[src]
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,