#[non_exhaustive]pub struct ErrorCounts {
pub refused_registrations: u64,
pub accepts_out_of_descriptors: u64,
/* private fields */
}Expand description
IO errors counted by io::ErrorKind, and two kinds of failure
counted apart.
An error counted is one an operation on a socket, pipe or file ended with, as the system gave it: not a “try again” the driver answers by waiting, nor the cancel of an operation whose task went away.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.refused_registrations: u64Handles the shard could not register: the kernel refused to watch the descriptor, or to let the shard’s driver take it.
accepts_out_of_descriptors: u64Accepts that failed because the process or the system had no file descriptor left (counted among the errors by kind too).
Implementations§
Source§impl ErrorCounts
impl ErrorCounts
Sourcepub fn get(&self, kind: ErrorKind) -> u64
pub fn get(&self, kind: ErrorKind) -> u64
Errors of kind. The kinds are counted apart from a fixed table
holding every stable kind the system’s IO errors map to; one outside
it is counted, and read, as io::ErrorKind::Other.
Trait Implementations§
Source§impl Clone for ErrorCounts
impl Clone for ErrorCounts
Source§fn clone(&self) -> ErrorCounts
fn clone(&self) -> ErrorCounts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ErrorCounts
impl Debug for ErrorCounts
Source§impl Default for ErrorCounts
impl Default for ErrorCounts
impl Eq for ErrorCounts
Source§impl PartialEq for ErrorCounts
impl PartialEq for ErrorCounts
impl StructuralPartialEq for ErrorCounts
Auto Trait Implementations§
impl Freeze for ErrorCounts
impl RefUnwindSafe for ErrorCounts
impl Send for ErrorCounts
impl Sync for ErrorCounts
impl Unpin for ErrorCounts
impl UnsafeUnpin for ErrorCounts
impl UnwindSafe for ErrorCounts
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