pub struct DetachedNamespace { /* private fields */ }Expand description
A handle to a detached namespace.
Obtain one from
Engine::create_detached_namespace
and use its DetachedNamespace::id with ordinary Engine operations.
Implementations§
Source§impl DetachedNamespace
impl DetachedNamespace
Sourcepub fn new(id: Id<ObjectIdMarker>) -> DetachedNamespace
pub fn new(id: Id<ObjectIdMarker>) -> DetachedNamespace
Wraps an object id as a namespace handle.
The OS layer uses this to hold namespaces it created (or that were created lazily) without re-querying the Engine.
Sourcepub fn id(self) -> Id<ObjectIdMarker>
pub fn id(self) -> Id<ObjectIdMarker>
The underlying object identity of this namespace.
Trait Implementations§
Source§impl Clone for DetachedNamespace
impl Clone for DetachedNamespace
Source§fn clone(&self) -> DetachedNamespace
fn clone(&self) -> DetachedNamespace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DetachedNamespace
Source§impl Debug for DetachedNamespace
impl Debug for DetachedNamespace
impl Eq for DetachedNamespace
Source§impl Hash for DetachedNamespace
impl Hash for DetachedNamespace
Source§impl PartialEq for DetachedNamespace
impl PartialEq for DetachedNamespace
impl StructuralPartialEq for DetachedNamespace
Auto Trait Implementations§
impl Freeze for DetachedNamespace
impl RefUnwindSafe for DetachedNamespace
impl Send for DetachedNamespace
impl Sync for DetachedNamespace
impl Unpin for DetachedNamespace
impl UnsafeUnpin for DetachedNamespace
impl UnwindSafe for DetachedNamespace
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.