pub struct EngineBuilder { /* private fields */ }Expand description
Configures and builds a loaded Engine from OXGTOPO bytes.
Implementations§
Source§impl EngineBuilder
impl EngineBuilder
Sourcepub fn snapshot_owned(self, bytes: Vec<u8>) -> Self
pub fn snapshot_owned(self, bytes: Vec<u8>) -> Self
Supplies owned snapshot bytes to load.
Sourcepub fn overlay(self, overlay: OverlayState) -> Self
pub fn overlay(self, overlay: OverlayState) -> Self
Sets overlay state applied after open.
Sourcepub fn config(self, config: Config) -> Self
pub fn config(self, config: Config) -> Self
Sets operational configuration validated at build time.
Sourcepub fn build(self) -> Result<Engine, PostgresGraphError>
pub fn build(self) -> Result<Engine, PostgresGraphError>
Validates the artifact and opens forward CSR plus inbound CSC views once.
§Errors
Returns PostgresGraphError when bytes are missing, invalid, or layouts disagree.
§Performance
This function is O(s + n + m); queries are O(1) to borrow topology afterward.
Trait Implementations§
Source§impl Clone for EngineBuilder
impl Clone for EngineBuilder
Source§fn clone(&self) -> EngineBuilder
fn clone(&self) -> EngineBuilder
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 EngineBuilder
impl Debug for EngineBuilder
Source§impl Default for EngineBuilder
impl Default for EngineBuilder
Source§fn default() -> EngineBuilder
fn default() -> EngineBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EngineBuilder
impl RefUnwindSafe for EngineBuilder
impl Send for EngineBuilder
impl Sync for EngineBuilder
impl Unpin for EngineBuilder
impl UnsafeUnpin for EngineBuilder
impl UnwindSafe for EngineBuilder
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