⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

with_socket

Function with_socket 

Source
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)