pub struct NetstackFacade { /* private fields */ }
Expand description
Network stack operations.
Implementations§
Source§impl NetstackFacade
impl NetstackFacade
pub async fn enable_interface(&self, id: u64) -> Result<(), Error>
pub async fn disable_interface(&self, id: u64) -> Result<(), Error>
pub async fn list_interfaces(&self) -> Result<Vec<Properties>, Error>
pub fn get_ipv6_addresses( &self, ) -> impl Future<Output = Result<Vec<Ipv6Addr>, Error>> + '_
pub fn get_link_local_ipv6_addresses( &self, ) -> impl Future<Output = Result<Vec<Ipv6Addr>, Error>> + '_
Sourcepub async fn get_netstack_version(
&self,
) -> Result<InEffectNetstackVersion, Error>
pub async fn get_netstack_version( &self, ) -> Result<InEffectNetstackVersion, Error>
Gets the current netstack version settings.
See fnet_stack_migration::StateProxy::get_netstack_version
for more
details.
Sourcepub async fn set_user_netstack_version(
&self,
version: NetstackVersion,
) -> Result<(), Error>
pub async fn set_user_netstack_version( &self, version: NetstackVersion, ) -> Result<(), Error>
Sets the user specified netstack version. takes effect on the next boot.
See fnet_stack_migration::ControlProxy::set_user_netstack_version
for more details.
Trait Implementations§
Source§impl Debug for NetstackFacade
impl Debug for NetstackFacade
Source§impl Default for NetstackFacade
impl Default for NetstackFacade
Source§fn default() -> NetstackFacade
fn default() -> NetstackFacade
Returns the “default value” for a type. Read more
Source§impl Facade for NetstackFacade
impl Facade for NetstackFacade
Source§fn handle_request<'life0, 'async_trait>(
&'life0 self,
method: String,
args: Value,
) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle_request<'life0, 'async_trait>(
&'life0 self,
method: String,
args: Value,
) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Asynchronously handle the incoming request for the given method and arguments, returning a
future object representing the pending operation.
Auto Trait Implementations§
impl !Freeze for NetstackFacade
impl !RefUnwindSafe for NetstackFacade
impl Send for NetstackFacade
impl Sync for NetstackFacade
impl Unpin for NetstackFacade
impl !UnwindSafe for NetstackFacade
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> OptionalField for Twhere
T: ?Sized,
impl<T> OptionalField for Twhere
T: ?Sized,
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
Source§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.