Skip to main content

FrameSink

Trait FrameSink 

Source
pub trait FrameSink: MaybeSend {
    // Required method
    fn send(
        &mut self,
        frame: &SshFrame,
    ) -> impl Future<Output = Result<(), FrameIoError>> + MaybeSend;
}
Expand description

Where a session writes its frames.

Required Methods§

Source

fn send( &mut self, frame: &SshFrame, ) -> impl Future<Output = Result<(), FrameIoError>> + MaybeSend

Write one frame, flushed.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§