pub enum SetAffinityError {
Online(Error),
Thread(Error),
Ring(Error),
}
Expand description
An error that can occur when setting the affinity of a thread.
Variants§
Online(Error)
An error occurred while checking if the CPU is online.
Thread(Error)
An error occurred while setting the thread affinity.
Ring(Error)
An error occurred while setting the IO ring affinity.
Trait Implementations§
Source§impl Debug for SetAffinityError
impl Debug for SetAffinityError
Source§impl Display for SetAffinityError
impl Display for SetAffinityError
Source§impl Error for SetAffinityError
impl Error for SetAffinityError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for SetAffinityError
impl !RefUnwindSafe for SetAffinityError
impl Send for SetAffinityError
impl Sync for SetAffinityError
impl Unpin for SetAffinityError
impl !UnwindSafe for SetAffinityError
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