Skip to main content

Sink

Trait Sink 

Source
pub trait Sink {
    // Required method
    fn deliver(&self, session: u64, frame: Vec<u8>) -> bool;
}
Expand description

Delivers frames to one session. Returns false once the peer is gone.

Required Methods§

Source

fn deliver(&self, session: u64, frame: Vec<u8>) -> bool

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<F: Fn(u64, Vec<u8>) -> bool> Sink for F