Skip to main content

GraphIdentifierNamespace

Struct GraphIdentifierNamespace 

Source
pub struct GraphIdentifierNamespace { /* private fields */ }

Implementations§

Source§

impl GraphIdentifierNamespace

Source

pub fn new(scope: Option<&str>, generation: [u8; 16]) -> Self

Source

pub fn key( &self, tag: u8, kind: GraphEntityKind, prefix: u32, graph: [u8; 16], ) -> [u8; 78]

Source

pub fn legacy_graph_identity(&self, graph: &str) -> [u8; 16]

Legacy names identify only the original incarnation. New graph creation supplies a random identity; rename retains the original identity in its registry.

Source

pub fn label_key(&self, graph: [u8; 16]) -> [u8; 78]

Source

pub fn serializable_entity_object(&self) -> [u8; 16]

Logical graph entity observations share the physical entity scope and clear generation, independently of named graph membership or table row identities.

Source

pub fn serializable_scope_object(&self) -> [u8; 16]

Clearing a namespace invalidates even an absent read from any earlier generation of that physical scope.

Source

pub fn sequence_key(&self, graph: [u8; 16], label: u32) -> [u8; 78]

Source

pub fn entity_key(&self, kind: GraphEntityKind, prefix: u32) -> [u8; 78]

Source

pub fn entity_seed_key(&self, kind: GraphEntityKind, prefix: u32) -> [u8; 78]

Source

pub fn hint_key(&self, kind: GraphEntityKind) -> [u8; 78]

Source

pub fn observe_entity( &self, batch: &mut dyn KeyValueBatch, kind: GraphEntityKind, id: u64, ) -> StorageBackendResult<()>

Preserve a supplied physical identity before its evaluated record is published. The wire identity has a two-byte prefix and six-byte ordinal; observing one row does not certify that legacy rows were seeded.

Source

pub fn observe_registry( &self, batch: &mut dyn KeyValueBatch, graph: &str, source: &str, ) -> StorageBackendResult<()>

Import durable counters encoded in a graph registry without assigning labels or evaluating graph behavior. Opaque legacy payloads retain their existing catalog contract.

Trait Implementations§

Source§

impl Clone for GraphIdentifierNamespace

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for GraphIdentifierNamespace

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.