pub enum ConfigurableNetstackRequest {
ConfigureInterface {
payload: InterfaceOptions,
responder: ConfigurableNetstackConfigureInterfaceResponder,
},
}
Expand description
A test-friendly wrapper around Fuchsia’s administrative netstack APIs.
This protocol provides a simplified interface to an underlying netstack that allows the caller to configure it for use in a test environment.
Variants§
ConfigureInterface
Installs a device in the netstack with the provided configuration.
- request
options
configuration options on the interface.
- error
INVALID_ARGS
ifoptions
is invalid, as validated by the configurable-netstack. - error
REJECTED_BY_NETSTACK
if an error is returned from an operation on the netstack, e.g. attempting to add an invalid route. - error
INTERNAL
if an unexpected error is encountered that is not caused by the client, e.g. an error communicating with the netstack.
Implementations§
Source§impl ConfigurableNetstackRequest
impl ConfigurableNetstackRequest
pub fn into_configure_interface( self, ) -> Option<(InterfaceOptions, ConfigurableNetstackConfigureInterfaceResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConfigurableNetstackRequest
impl !RefUnwindSafe for ConfigurableNetstackRequest
impl Send for ConfigurableNetstackRequest
impl Sync for ConfigurableNetstackRequest
impl Unpin for ConfigurableNetstackRequest
impl !UnwindSafe for ConfigurableNetstackRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more