Skip to main content

NetEnabler

Trait NetEnabler 

Source
pub trait NetEnabler:
    Clone
    + Send
    + 'static {
    // Required methods
    fn get_ttl(&self) -> Option<u8>;
    fn is_packet_relevant(&self, flags: u8) -> bool;
    fn is_fast(&self) -> bool;
    fn close_session(&self, f: &FlowId);
    fn open_session(&self, f: &FlowId);
}
Expand description

A trait for network enablers

Required Methods§

Source

fn get_ttl(&self) -> Option<u8>

Source

fn is_packet_relevant(&self, flags: u8) -> bool

is this packet sent by Fos-R ?

Source

fn is_fast(&self) -> bool

should we send the packet without waiting for any answer?

Source

fn close_session(&self, f: &FlowId)

close the connection

Source

fn open_session(&self, f: &FlowId)

set-up the connection

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§