Struct axns::AxResource
source · pub struct AxResource<T>(/* private fields */);
Expand description
A helper type to easily manage shared resources.
It provides methods to lazily initialize the resource of the current thread, or to share the resource with other threads.
Implementations§
source§impl<T> AxResource<T>
impl<T> AxResource<T>
Returns a shared reference to the resource.
Initializes the resource with the shared data.
Trait Implementations§
source§impl<T: Debug> Debug for AxResource<T>
impl<T: Debug> Debug for AxResource<T>
Auto Trait Implementations§
impl<T> !Freeze for AxResource<T>
impl<T> !RefUnwindSafe for AxResource<T>
impl<T> Send for AxResource<T>
impl<T> Sync for AxResource<T>
impl<T> Unpin for AxResource<T>
impl<T> UnwindSafe for AxResource<T>where
T: RefUnwindSafe,
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