pub struct CURRENT_DIR_PATH { /* private fields */ }
Expand description
Wrapper struct for the namespace resource CURRENT_DIR_PATH
Implementations§
Source§impl CURRENT_DIR_PATH
impl CURRENT_DIR_PATH
Sourcepub fn deref_from(&self, ns: &AxNamespace) -> &ResArc<Mutex<String>>
pub fn deref_from(&self, ns: &AxNamespace) -> &ResArc<Mutex<String>>
Dereference the resource from the given namespace.
Sourcepub fn deref_global(&self) -> &ResArc<Mutex<String>>
pub fn deref_global(&self) -> &ResArc<Mutex<String>>
Dereference the resource from the global namespace.
Sourcepub fn deref_auto(&self) -> &ResArc<Mutex<String>>
pub fn deref_auto(&self) -> &ResArc<Mutex<String>>
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_PATH
impl CURRENT_DIR_PATH
Sourcepub fn copy_inner(&self) -> Mutex<String>
pub fn copy_inner(&self) -> Mutex<String>
Return a copy of the inner path.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CURRENT_DIR_PATH
impl RefUnwindSafe for CURRENT_DIR_PATH
impl Send for CURRENT_DIR_PATH
impl Sync for CURRENT_DIR_PATH
impl Unpin for CURRENT_DIR_PATH
impl UnwindSafe for CURRENT_DIR_PATH
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