pub struct V2NodeCoordinator { /* private fields */ }Expand description
V2 node operation coordinator
Implementations§
Source§impl V2NodeCoordinator
impl V2NodeCoordinator
pub fn new() -> Self
pub async fn node_exists(&self, _node_id: NativeNodeId) -> NativeResult<bool>
pub async fn apply_insert( &self, node_id: NativeNodeId, node_data: NodeRecordV2, ) -> NativeResult<()>
pub async fn get_node( &self, node_id: NativeNodeId, ) -> NativeResult<NodeRecordV2>
pub async fn apply_update( &self, node_id: NativeNodeId, node_data: NodeRecordV2, ) -> NativeResult<()>
pub async fn cache_size(&self) -> usize
Auto Trait Implementations§
impl Freeze for V2NodeCoordinator
impl !RefUnwindSafe for V2NodeCoordinator
impl Send for V2NodeCoordinator
impl Sync for V2NodeCoordinator
impl Unpin for V2NodeCoordinator
impl !UnwindSafe for V2NodeCoordinator
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