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§
fn get_ttl(&self) -> Option<u8>
Sourcefn is_packet_relevant(&self, flags: u8) -> bool
fn is_packet_relevant(&self, flags: u8) -> bool
is this packet sent by Fos-R ?
Sourcefn close_session(&self, f: &FlowId)
fn close_session(&self, f: &FlowId)
close the connection
Sourcefn open_session(&self, f: &FlowId)
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".