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§
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>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".