Skip to main content

FrameSource

Trait FrameSource 

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

Where a session reads its frames.

Required Methods§

Source

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

The next frame. A source with a read deadline returns FrameIoError::Timeout when it passes.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§