pub enum RRefError {
RegionNotFound(RegionId),
AllocationInvalid,
RegionMismatch {
expected: RegionId,
actual: RegionId,
},
RegionClosed,
WrongRegion,
}Expand description
Error returned when accessing an RRef fails.
Variants§
RegionNotFound(RegionId)
The region does not exist in the runtime state.
AllocationInvalid
The heap allocation is no longer valid (deallocated or type mismatch).
RegionMismatch
The region ID in the RRef doesn’t match the provided region.
Fields
RegionClosed
The region is closed and its heap has been reclaimed.
WrongRegion
The access witness references a different region than expected.
Trait Implementations§
Source§impl Error for RRefError
impl Error for RRefError
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()
impl Eq for RRefError
impl StructuralPartialEq for RRefError
Auto Trait Implementations§
impl Freeze for RRefError
impl RefUnwindSafe for RRefError
impl Send for RRefError
impl Sync for RRefError
impl Unpin for RRefError
impl UnsafeUnpin for RRefError
impl UnwindSafe for RRefError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).