pub fn with_socket<R, F: FnOnce(&Socket) -> R>(
id: usize,
f: F,
) -> Result<R, KernelError>Expand description
Execute a closure with a socket by ID (immutable access)
pub fn with_socket<R, F: FnOnce(&Socket) -> R>(
id: usize,
f: F,
) -> Result<R, KernelError>Execute a closure with a socket by ID (immutable access)