pub struct ManagedInterface { /* private fields */ }
Implementations§
Source§impl ManagedInterface
impl ManagedInterface
pub fn new<D: Device + ?Sized>( config: Config, dhcp_overrides: DhcpOverrides, device: &mut D, instant: Instant, ) -> Self
pub fn new_tcp_socket(&self) -> TcpSocket
pub fn new_tcp_socket_with_buffer_sizes( &self, rx_buffer_size: usize, tx_buffer_size: usize, ) -> TcpSocket
pub fn new_socket<T: AnySocket<'static>>(&self, socket: T) -> Socket<T>
pub fn poll_at(&self, timestamp: Instant) -> Option<Instant>
pub fn poll_delay(&self, timestamp: Instant) -> Option<Duration>
pub fn poll<D: Device + ?Sized>( &self, timestamp: Instant, device: &mut D, ) -> bool
pub async fn dns_query( &self, name: &str, query_type: DnsQueryType, ) -> Result<Vec<IpAddress>, DnsError>
Trait Implementations§
Source§impl Clone for ManagedInterface
impl Clone for ManagedInterface
Source§fn clone(&self) -> ManagedInterface
fn clone(&self) -> ManagedInterface
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ManagedInterface
impl !RefUnwindSafe for ManagedInterface
impl !Send for ManagedInterface
impl !Sync for ManagedInterface
impl Unpin for ManagedInterface
impl !UnwindSafe for ManagedInterface
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)