pub struct ContainmentAdoptionError<C> {
pub error: SysprimsError,
pub child: C,
}Expand description
Error returned when containment cannot be acquired.
The child is returned so acquisition failure never silently loses the caller’s only reap handle.
Fields§
§error: SysprimsError§child: CTrait Implementations§
Source§impl<C> Debug for ContainmentAdoptionError<C>
impl<C> Debug for ContainmentAdoptionError<C>
Source§impl<C> Display for ContainmentAdoptionError<C>
impl<C> Display for ContainmentAdoptionError<C>
Source§impl<C> Error for ContainmentAdoptionError<C>
impl<C> Error for ContainmentAdoptionError<C>
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()
Auto Trait Implementations§
impl<C> !RefUnwindSafe for ContainmentAdoptionError<C>
impl<C> !UnwindSafe for ContainmentAdoptionError<C>
impl<C> Forget for ContainmentAdoptionError<C>
impl<C> Freeze for ContainmentAdoptionError<C>where
C: Freeze,
impl<C> Move for ContainmentAdoptionError<C>
impl<C> Send for ContainmentAdoptionError<C>where
C: Send,
impl<C> Sync for ContainmentAdoptionError<C>where
C: Sync,
impl<C> Unpin for ContainmentAdoptionError<C>where
C: Unpin,
impl<C> UnsafeUnpin for ContainmentAdoptionError<C>where
C: UnsafeUnpin,
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