pub trait StackProxyInterface: Send + Sync {
type AddForwardingEntryResponseFut: Future<Output = Result<StackAddForwardingEntryResult, Error>> + Send;
type DelForwardingEntryResponseFut: Future<Output = Result<StackDelForwardingEntryResult, Error>> + Send;
type SetInterfaceIpForwardingDeprecatedResponseFut: Future<Output = Result<StackSetInterfaceIpForwardingDeprecatedResult, 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_interface_ip_forwarding_deprecated(
&self,
id: u64,
ip_version: IpVersion,
enabled: bool
) -> Self::SetInterfaceIpForwardingDeprecatedResponseFut;
fn set_dhcp_client_enabled(
&self,
id: u64,
enable: bool
) -> Self::SetDhcpClientEnabledResponseFut;
fn bridge_interfaces(
&self,
interfaces: &[u64],
bridge: ServerEnd<ControlMarker>
) -> Result<(), Error>;
}