pub struct ResourceSlot<T> {
pub resource: T,
pub state: ResourceState,
pub borrow_count: u32,
}Expand description
A single resource slot.
Fields§
§resource: T§state: ResourceState§borrow_count: u32Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ResourceSlot<T>where
T: Freeze,
impl<T> RefUnwindSafe for ResourceSlot<T>where
T: RefUnwindSafe,
impl<T> Send for ResourceSlot<T>where
T: Send,
impl<T> Sync for ResourceSlot<T>where
T: Sync,
impl<T> Unpin for ResourceSlot<T>where
T: Unpin,
impl<T> UnsafeUnpin for ResourceSlot<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ResourceSlot<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