fidl_fuchsia_net_tun

Trait PortProxyInterface

Source
pub trait PortProxyInterface: Send + Sync {
    type GetStateResponseFut: Future<Output = Result<InternalState, Error>> + Send;
    type WatchStateResponseFut: Future<Output = Result<InternalState, Error>> + Send;
    type SetOnlineResponseFut: Future<Output = Result<(), Error>> + Send;

    // Required methods
    fn get_state(&self) -> Self::GetStateResponseFut;
    fn watch_state(&self) -> Self::WatchStateResponseFut;
    fn set_online(&self, online: bool) -> Self::SetOnlineResponseFut;
    fn get_port(&self, port: ServerEnd<PortMarker>) -> Result<(), Error>;
    fn remove(&self) -> Result<(), Error>;
}

Required Associated Types§

Required Methods§

Source

fn get_state(&self) -> Self::GetStateResponseFut

Source

fn watch_state(&self) -> Self::WatchStateResponseFut

Source

fn set_online(&self, online: bool) -> Self::SetOnlineResponseFut

Source

fn get_port(&self, port: ServerEnd<PortMarker>) -> Result<(), Error>

Source

fn remove(&self) -> Result<(), Error>

Implementors§