pub enum ResidentUnitWindowError {
UnknownUnit {
index: usize,
count: usize,
},
AlreadyAcquired {
index: usize,
},
MismatchedUnit {
expected: usize,
actual: usize,
},
AlreadyResident {
index: usize,
},
}Expand description
Invalid access to an owned resident-unit window.
Variants§
UnknownUnit
The requested unit is outside the ordered window.
AlreadyAcquired
A unit was acquired twice without an intervening completion.
MismatchedUnit
Completion returned a lease for the wrong unit.
AlreadyResident
A completion attempted to overwrite a resident unit.
Trait Implementations§
Source§impl Clone for ResidentUnitWindowError
impl Clone for ResidentUnitWindowError
Source§fn clone(&self) -> ResidentUnitWindowError
fn clone(&self) -> ResidentUnitWindowError
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 ResidentUnitWindowError
impl Debug for ResidentUnitWindowError
Source§impl Display for ResidentUnitWindowError
impl Display for ResidentUnitWindowError
impl Eq for ResidentUnitWindowError
Source§impl Error for ResidentUnitWindowError
impl Error for ResidentUnitWindowError
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 ResidentUnitWindowError
impl PartialEq for ResidentUnitWindowError
impl StructuralPartialEq for ResidentUnitWindowError
Auto Trait Implementations§
impl Freeze for ResidentUnitWindowError
impl RefUnwindSafe for ResidentUnitWindowError
impl Send for ResidentUnitWindowError
impl Sync for ResidentUnitWindowError
impl Unpin for ResidentUnitWindowError
impl UnsafeUnpin for ResidentUnitWindowError
impl UnwindSafe for ResidentUnitWindowError
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