pub struct K1Kmap { /* private fields */ }Implementations§
Source§impl K1Kmap
impl K1Kmap
pub fn open( root: &Path, ordering: Arc<K1TxnOrdering>, peering: Arc<K1Peering>, ) -> Result<Self, String>
pub fn create_node( &self, title: impl Into<String>, navigation_hint: impl Into<String>, narrative: impl Into<String>, connections: Vec<ConnectionSpec>, ) -> Result<TxId, String>
pub fn update_node( &self, node_id: NodeId, title: Option<String>, navigation_hint: Option<String>, narrative: Option<String>, connection_updates: Vec<ConnectionSpec>, ) -> Result<TxId, String>
pub fn apply_measurements( &self, measurements: Vec<ConnectionMeasurement>, ) -> Result<TxId, String>
pub fn get_node(&self, node_id: NodeId) -> Result<Option<Node>, String>
pub fn open_node( &self, node_id: NodeId, budget: f64, temperature: f64, mode: OpenMode, candidate_filter: impl FnMut(&[NodeId]) -> Result<Vec<NodeId>, String>, ) -> Result<OpenResult, String>
Auto Trait Implementations§
impl Freeze for K1Kmap
impl RefUnwindSafe for K1Kmap
impl Send for K1Kmap
impl Sync for K1Kmap
impl Unpin for K1Kmap
impl UnsafeUnpin for K1Kmap
impl UnwindSafe for K1Kmap
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