[][src]Struct thrussh::server::Handle

pub struct Handle { /* fields omitted */ }

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]

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]

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]

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]

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]

If the program was killed by a signal, send the details about the signal to the client.

Trait Implementations

impl Clone for Handle[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.