pub trait ControllerProxyInterface: Send + Sync {
type AddEntryResponseFut: Future<Output = Result<ControllerAddEntryResult, Error>> + Send;
type ProbeEntryResponseFut: Future<Output = Result<ControllerProbeEntryResult, Error>> + Send;
type RemoveEntryResponseFut: Future<Output = Result<ControllerRemoveEntryResult, Error>> + Send;
type ClearEntriesResponseFut: Future<Output = Result<ControllerClearEntriesResult, Error>> + Send;
// Required methods
fn add_entry(
&self,
interface: u64,
neighbor: &IpAddress,
mac: &MacAddress,
) -> Self::AddEntryResponseFut;
fn probe_entry(
&self,
interface: u64,
neighbor: &IpAddress,
) -> Self::ProbeEntryResponseFut;
fn remove_entry(
&self,
interface: u64,
neighbor: &IpAddress,
) -> Self::RemoveEntryResponseFut;
fn clear_entries(
&self,
interface: u64,
ip_version: IpVersion,
) -> Self::ClearEntriesResponseFut;
}Required Associated Types§
type AddEntryResponseFut: Future<Output = Result<ControllerAddEntryResult, Error>> + Send
type ProbeEntryResponseFut: Future<Output = Result<ControllerProbeEntryResult, Error>> + Send
type RemoveEntryResponseFut: Future<Output = Result<ControllerRemoveEntryResult, Error>> + Send
type ClearEntriesResponseFut: Future<Output = Result<ControllerClearEntriesResult, Error>> + Send
Required Methods§
fn add_entry( &self, interface: u64, neighbor: &IpAddress, mac: &MacAddress, ) -> Self::AddEntryResponseFut
fn probe_entry( &self, interface: u64, neighbor: &IpAddress, ) -> Self::ProbeEntryResponseFut
fn remove_entry( &self, interface: u64, neighbor: &IpAddress, ) -> Self::RemoveEntryResponseFut
fn clear_entries( &self, interface: u64, ip_version: IpVersion, ) -> Self::ClearEntriesResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".