Skip to main content

FrameSink

Trait FrameSink 

Source
pub trait FrameSink {
    // Required method
    fn send(&mut self, frame: &[u8]) -> Result<()>;
}
Expand description

Where a Wall sends its frames: the raw link in production, a recording sink in tests so the frame recipe can be pinned offline.

Required Methods§

Source

fn send(&mut self, frame: &[u8]) -> Result<()>

Send one raw Ethernet frame.

§Errors

Fails if the frame cannot be sent.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

fn send(&mut self, frame: &[u8]) -> Result<()>

Implementors§