pub struct LocalLibcProvider { /* private fields */ }Expand description
Provider that queries information from libc interface.
Implementations§
Trait Implementations§
Source§impl Clone for LocalLibcProvider
impl Clone for LocalLibcProvider
Source§fn clone(&self) -> LocalLibcProvider
fn clone(&self) -> LocalLibcProvider
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 LocalLibcProvider
impl Debug for LocalLibcProvider
Source§impl Provider for LocalLibcProvider
impl Provider for LocalLibcProvider
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 address on the specified interface.
§Errors
This function propagates the error from libc_getips::get_iface_addrs.
Auto Trait Implementations§
impl Freeze for LocalLibcProvider
impl RefUnwindSafe for LocalLibcProvider
impl Send for LocalLibcProvider
impl Sync for LocalLibcProvider
impl Unpin for LocalLibcProvider
impl UnwindSafe for LocalLibcProvider
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