pub struct Manager { /* private fields */ }Implementations§
Source§impl Manager
impl Manager
pub fn new( task_manager: &'static Manager, virtual_file_system: &'static VirtualFileSystem, time_manager: &'static Manager<'static>, random_device: &'static dyn DirectCharacterDevice, ) -> Self
pub async fn mount_interface( &self, task: TaskIdentifier, name: &str, device: impl Device + 'static, controller_device: impl DirectCharacterDevice + 'static, spawner: Option<SpawnerIdentifier>, ) -> Result<()>
pub async fn resolve( &self, host: &str, kind: DnsQueryKind, stop_on_first_match: bool, interface_name: Option<&str>, ) -> ResolveResult<Vec<IpAddress>>
Sourcepub async fn has_ip_address(&self, interface_name: Option<&str>) -> bool
pub async fn has_ip_address(&self, interface_name: Option<&str>) -> bool
Whether the selected interface, or the first available one, has at least one IP address: the signal that the network is up for clients.
pub async fn new_tcp_socket( &self, transmit_buffer_size: usize, receive_buffer_size: usize, interface_name: Option<&str>, ) -> Result<TcpSocket>
pub async fn new_udp_socket( &self, transmit_buffer_size: usize, receive_buffer_size: usize, receive_meta_buffer_size: usize, transmit_meta_buffer_size: usize, interface_name: Option<&str>, ) -> Result<UdpSocket>
pub async fn new_icmp_socket( &self, receive_buffer_size: usize, transmit_buffer_size: usize, receive_meta_buffer_size: usize, transmit_meta_buffer_size: usize, interface_name: Option<&str>, ) -> Result<IcmpSocket>
Auto Trait Implementations§
impl !Freeze for Manager
impl !RefUnwindSafe for Manager
impl Send for Manager
impl Sync for Manager
impl Unpin for Manager
impl UnsafeUnpin for Manager
impl !UnwindSafe for Manager
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