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§

source§

impl PortProxyInterface for PortProxy

§

type GetStateResponseFut = QueryResponseFut<InternalState>

§

type WatchStateResponseFut = QueryResponseFut<InternalState>

§

type SetOnlineResponseFut = QueryResponseFut<()>