pub struct CURRENT_DIR { /* private fields */ }
Expand description
Wrapper struct for the namespace resource CURRENT_DIR
Implementations§
Source§impl CURRENT_DIR
impl CURRENT_DIR
Sourcepub fn deref_from(&self, ns: &AxNamespace) -> &ResArc<Mutex<VfsNodeRef>>
pub fn deref_from(&self, ns: &AxNamespace) -> &ResArc<Mutex<VfsNodeRef>>
Dereference the resource from the given namespace.
Sourcepub fn deref_global(&self) -> &ResArc<Mutex<VfsNodeRef>>
pub fn deref_global(&self) -> &ResArc<Mutex<VfsNodeRef>>
Dereference the resource from the global namespace.
Sourcepub fn deref_auto(&self) -> &ResArc<Mutex<VfsNodeRef>>
pub fn deref_auto(&self) -> &ResArc<Mutex<VfsNodeRef>>
Dereference the resource automatically, according whether the
thread-local
feature of the axns
crate is enabled or not.
When the feature is enabled, it dereferences from the thread-local namespace of the current thread. Otherwise, it dereferences from the global namespace.
Source§impl CURRENT_DIR
impl CURRENT_DIR
Sourcepub fn copy_inner(&self) -> Mutex<VfsNodeRef>
pub fn copy_inner(&self) -> Mutex<VfsNodeRef>
Return a copy of the CURRENT_DIR_NODE.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CURRENT_DIR
impl RefUnwindSafe for CURRENT_DIR
impl Send for CURRENT_DIR
impl Sync for CURRENT_DIR
impl Unpin for CURRENT_DIR
impl UnwindSafe for CURRENT_DIR
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