#[non_exhaustive]pub enum PlacementFailure {
Unsupported,
OutOfRange,
Os {
code: i32,
},
}Expand description
Why a worker could not be confined to a logical processor.
Every variant leaves the thread with the affinity it had before the attempt.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unsupported
This target has no thread-binding backend.
OutOfRange
The processor id is beyond what the target affinity interface can name.
Os
The operating system refused the request, for example because the processor is offline or outside the allowed set of the process.
Trait Implementations§
Source§impl Clone for PlacementFailure
impl Clone for PlacementFailure
Source§fn clone(&self) -> PlacementFailure
fn clone(&self) -> PlacementFailure
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 moreimpl Copy for PlacementFailure
Source§impl Debug for PlacementFailure
impl Debug for PlacementFailure
Source§impl Display for PlacementFailure
impl Display for PlacementFailure
impl Eq for PlacementFailure
Source§impl Error for PlacementFailure
Available on crate feature std only.
impl Error for PlacementFailure
Available on crate feature
std only.1.30.0 · 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()
Source§impl PartialEq for PlacementFailure
impl PartialEq for PlacementFailure
impl StructuralPartialEq for PlacementFailure
Auto Trait Implementations§
impl Freeze for PlacementFailure
impl RefUnwindSafe for PlacementFailure
impl Send for PlacementFailure
impl Sync for PlacementFailure
impl Unpin for PlacementFailure
impl UnsafeUnpin for PlacementFailure
impl UnwindSafe for PlacementFailure
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