pub struct RetainResult<T> {
pub retained: usize,
pub removed: Vec<T>,
}
Expand description
This is the result returned by Pool::retain
Fields§
§retained: usize
Number of retained objects
removed: Vec<T>
Objects that were removed from the pool
Trait Implementations§
Source§impl<T: Debug> Debug for RetainResult<T>
impl<T: Debug> Debug for RetainResult<T>
Auto Trait Implementations§
impl<T> Freeze for RetainResult<T>
impl<T> RefUnwindSafe for RetainResult<T>where
T: RefUnwindSafe,
impl<T> Send for RetainResult<T>where
T: Send,
impl<T> Sync for RetainResult<T>where
T: Sync,
impl<T> Unpin for RetainResult<T>where
T: Unpin,
impl<T> UnwindSafe for RetainResult<T>where
T: UnwindSafe,
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