Skip to main content

Module resources

Module resources 

Source
Expand description

What this host says about running out of things.

A caller that fails to open a socket or write a file needs to know which wall it hit – descriptors, or space – because the two call for different responses: shed load and retry, or stop and free something. The number the host returns to say so is different on each of them, and in the Windows case there are three numbers rather than one.

So the classification lives here and the response stays with the caller. Nothing in these signatures names an errno or a Win32 code.

Re-exports§

pub use crate::resources_fd_exhaustion_error as fd_exhaustion_error;
pub use crate::resources_inode_capacity as inode_capacity;
pub use crate::resources_signals_fd_exhaustion as signals_fd_exhaustion;
pub use crate::resources_signals_storage_exhaustion as signals_storage_exhaustion;
pub use crate::resources_storage_exhaustion_error as storage_exhaustion_error;

Structs§

InodeCapacity
How many inodes a filesystem has, and how many are still available.