pub trait ControllerProxyInterface: Send + Sync {
    type AddEntryResponseFut: Future<Output = Result<ControllerAddEntryResult, 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 remove_entry(
        &self,
        interface: u64,
        neighbor: &IpAddress
    ) -> Self::RemoveEntryResponseFut;
    fn clear_entries(
        &self,
        interface: u64,
        ip_version: IpVersion
    ) -> Self::ClearEntriesResponseFut;
}

Required Associated Types§

Required Methods§

source

fn add_entry( &self, interface: u64, neighbor: &IpAddress, mac: &MacAddress ) -> Self::AddEntryResponseFut

source

fn remove_entry( &self, interface: u64, neighbor: &IpAddress ) -> Self::RemoveEntryResponseFut

source

fn clear_entries( &self, interface: u64, ip_version: IpVersion ) -> Self::ClearEntriesResponseFut

Implementors§

source§

impl ControllerProxyInterface for ControllerProxy

§

type AddEntryResponseFut = QueryResponseFut<Result<(), i32>>

§

type RemoveEntryResponseFut = QueryResponseFut<Result<(), i32>>

§

type ClearEntriesResponseFut = QueryResponseFut<Result<(), i32>>