pub struct LocalIpv6CommandProvider { /* private fields */ }Expand description
IPv6 Provider that queries information from ip or ifconfig.
Implementations§
Trait Implementations§
Source§impl Clone for LocalIpv6CommandProvider
impl Clone for LocalIpv6CommandProvider
Source§fn clone(&self) -> LocalIpv6CommandProvider
fn clone(&self) -> LocalIpv6CommandProvider
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LocalIpv6CommandProvider
impl Debug for LocalIpv6CommandProvider
Source§impl Provider for LocalIpv6CommandProvider
impl Provider for LocalIpv6CommandProvider
Source§fn get_addr<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<IpAddr>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_addr<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<IpAddr>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get a local IPv6 address on the specified interface with ip or ifconfig.
§Errors
This function returns NoAddress if the IP commands return no addresses.
In case that none of those commands succeed, it returns the last process execution error.
Auto Trait Implementations§
impl Freeze for LocalIpv6CommandProvider
impl RefUnwindSafe for LocalIpv6CommandProvider
impl Send for LocalIpv6CommandProvider
impl Sync for LocalIpv6CommandProvider
impl Unpin for LocalIpv6CommandProvider
impl UnwindSafe for LocalIpv6CommandProvider
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