#[repr(u8)]pub enum ValidNamespaces {
LOCAL = 0,
GLOBAL = 1,
CUSTOM = 2,
}Expand description
Namespaces as an enum, to unambiguously represent relevant information.
Variants§
LOCAL = 0
Local namespace, always allowed and sharable with children
GLOBAL = 1
Global namespace, requires SeCreateGlobal. See GLOBAL_NAMESPACE.
CUSTOM = 2
Custom namespace, makes it private unless you share/leak handles yourself.
Trait Implementations§
impl Copy for Namespace
Auto Trait Implementations§
impl Freeze for Namespace
impl RefUnwindSafe for Namespace
impl Send for Namespace
impl Sync for Namespace
impl Unpin for Namespace
impl UnwindSafe for Namespace
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