pub struct SnapshotRebuild;Expand description
Orchestrates relational snapshot rebuild from registration metadata and edge rows.
Implementations§
Source§impl SnapshotRebuild
impl SnapshotRebuild
Sourcepub fn from_catalog_and_edges(
catalog: &Catalog,
edges: &[EdgeRow],
built_at_unix: u64,
) -> Result<Vec<u8>, PostgresGraphError>
pub fn from_catalog_and_edges( catalog: &Catalog, edges: &[EdgeRow], built_at_unix: u64, ) -> Result<Vec<u8>, PostgresGraphError>
Validates catalog registration, then exports dual-topology OXGTOPO bytes.
Topology is derived from edges only; the catalog guards non-empty registration.
§Errors
Returns PostgresGraphError::Catalog or PostgresGraphError::Build on failure.
§Performance
This function is O(n log n + m) where n is distinct nodes and m is edge rows.
Trait Implementations§
Source§impl Clone for SnapshotRebuild
impl Clone for SnapshotRebuild
Source§fn clone(&self) -> SnapshotRebuild
fn clone(&self) -> SnapshotRebuild
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 moreSource§impl Debug for SnapshotRebuild
impl Debug for SnapshotRebuild
Source§impl Default for SnapshotRebuild
impl Default for SnapshotRebuild
Source§fn default() -> SnapshotRebuild
fn default() -> SnapshotRebuild
Returns the “default value” for a type. Read more
Source§impl PartialEq for SnapshotRebuild
impl PartialEq for SnapshotRebuild
Source§fn eq(&self, other: &SnapshotRebuild) -> bool
fn eq(&self, other: &SnapshotRebuild) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SnapshotRebuild
impl Eq for SnapshotRebuild
impl StructuralPartialEq for SnapshotRebuild
Auto Trait Implementations§
impl Freeze for SnapshotRebuild
impl RefUnwindSafe for SnapshotRebuild
impl Send for SnapshotRebuild
impl Sync for SnapshotRebuild
impl Unpin for SnapshotRebuild
impl UnsafeUnpin for SnapshotRebuild
impl UnwindSafe for SnapshotRebuild
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