fidl_fuchsia_netpol_socketproxy

Trait NetworkRegistryProxyInterface

Source
pub trait NetworkRegistryProxyInterface: Send + Sync {
    type SetDefaultResponseFut: Future<Output = Result<NetworkRegistrySetDefaultResult, Error>> + Send;
    type AddResponseFut: Future<Output = Result<NetworkRegistryAddResult, Error>> + Send;
    type UpdateResponseFut: Future<Output = Result<NetworkRegistryUpdateResult, Error>> + Send;
    type RemoveResponseFut: Future<Output = Result<NetworkRegistryRemoveResult, Error>> + Send;

    // Required methods
    fn set_default(
        &self,
        network_id: &OptionalUint32,
    ) -> Self::SetDefaultResponseFut;
    fn add(&self, network: &Network) -> Self::AddResponseFut;
    fn update(&self, network: &Network) -> Self::UpdateResponseFut;
    fn remove(&self, network_id: u32) -> Self::RemoveResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn set_default( &self, network_id: &OptionalUint32, ) -> Self::SetDefaultResponseFut

Source

fn add(&self, network: &Network) -> Self::AddResponseFut

Source

fn update(&self, network: &Network) -> Self::UpdateResponseFut

Source

fn remove(&self, network_id: u32) -> Self::RemoveResponseFut

Implementors§