pub trait StackProxyInterface: Send + Sync {
type AddForwardingEntryResponseFut: Future<Output = Result<StackAddForwardingEntryResult, Error>> + Send;
type DelForwardingEntryResponseFut: Future<Output = Result<StackDelForwardingEntryResult, Error>> + Send;
type SetDhcpClientEnabledResponseFut: Future<Output = Result<StackSetDhcpClientEnabledResult, Error>> + Send;
// Required methods
fn add_forwarding_entry(
&self,
entry: &ForwardingEntry,
) -> Self::AddForwardingEntryResponseFut;
fn del_forwarding_entry(
&self,
entry: &ForwardingEntry,
) -> Self::DelForwardingEntryResponseFut;
fn set_dhcp_client_enabled(
&self,
id: u64,
enable: bool,
) -> Self::SetDhcpClientEnabledResponseFut;
fn bridge_interfaces(
&self,
interfaces: &[u64],
bridge: ServerEnd<ControlMarker>,
) -> Result<(), Error>;
}Required Associated Types§
type AddForwardingEntryResponseFut: Future<Output = Result<StackAddForwardingEntryResult, Error>> + Send
type DelForwardingEntryResponseFut: Future<Output = Result<StackDelForwardingEntryResult, Error>> + Send
type SetDhcpClientEnabledResponseFut: Future<Output = Result<StackSetDhcpClientEnabledResult, Error>> + Send
Required Methods§
fn add_forwarding_entry( &self, entry: &ForwardingEntry, ) -> Self::AddForwardingEntryResponseFut
fn del_forwarding_entry( &self, entry: &ForwardingEntry, ) -> Self::DelForwardingEntryResponseFut
fn set_dhcp_client_enabled( &self, id: u64, enable: bool, ) -> Self::SetDhcpClientEnabledResponseFut
fn bridge_interfaces( &self, interfaces: &[u64], bridge: ServerEnd<ControlMarker>, ) -> Result<(), Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".