pub struct OwningReleaseError { /* private fields */ }Expand description
Owning-release failure that hands the exact owner back.
Every failure carried by this type is pre-mutation: nothing was released,
nothing was queued, and the returned OwningAllocation is still live and
still owns its allocation.
Implementations§
Source§impl OwningReleaseError
impl OwningReleaseError
pub const fn error(&self) -> &BindingError
pub const fn allocation(&self) -> &OwningAllocation
Sourcepub const fn state(&self) -> AllocationReleaseState
pub const fn state(&self) -> AllocationReleaseState
Nothing was mutated, so the owner is still AllocationReleaseState::Live.
pub fn into_parts(self) -> (BindingError, OwningAllocation)
Trait Implementations§
Source§impl Debug for OwningReleaseError
impl Debug for OwningReleaseError
Source§impl Display for OwningReleaseError
impl Display for OwningReleaseError
Source§impl Error for OwningReleaseError
impl Error for OwningReleaseError
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 !RefUnwindSafe for OwningReleaseError
impl !UnwindSafe for OwningReleaseError
impl Freeze for OwningReleaseError
impl Send for OwningReleaseError
impl Sync for OwningReleaseError
impl Unpin for OwningReleaseError
impl UnsafeUnpin for OwningReleaseError
Blanket Implementations§
impl<T> BindingResource for T
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