pub struct CloudScope { /* private fields */ }Expand description
Namespace and root pair that scopes item identities.
Implementations§
Source§impl CloudScope
impl CloudScope
Sourcepub const fn new(namespace_id: CloudNamespaceId, root_id: CloudRootId) -> Self
pub const fn new(namespace_id: CloudNamespaceId, root_id: CloudRootId) -> Self
Creates a scoped root identity.
Sourcepub const fn namespace_id(&self) -> &CloudNamespaceId
pub const fn namespace_id(&self) -> &CloudNamespaceId
Returns the backend identity namespace.
Sourcepub const fn root_id(&self) -> &CloudRootId
pub const fn root_id(&self) -> &CloudRootId
Returns the stable root identity.
Sourcepub fn into_parts(self) -> (CloudNamespaceId, CloudRootId)
pub fn into_parts(self) -> (CloudNamespaceId, CloudRootId)
Consumes the scope and returns its namespace and root identities.
Trait Implementations§
Source§impl Clone for CloudScope
impl Clone for CloudScope
Source§fn clone(&self) -> CloudScope
fn clone(&self) -> CloudScope
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CloudScope
impl Debug for CloudScope
Source§impl Hash for CloudScope
impl Hash for CloudScope
Source§impl PartialEq for CloudScope
impl PartialEq for CloudScope
impl Eq for CloudScope
impl StructuralPartialEq for CloudScope
Auto Trait Implementations§
impl Freeze for CloudScope
impl RefUnwindSafe for CloudScope
impl Send for CloudScope
impl Sync for CloudScope
impl Unpin for CloudScope
impl UnwindSafe for CloudScope
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