pub struct NodeCore { /* private fields */ }Implementations§
Source§impl NodeCore
impl NodeCore
pub fn new(node: &str) -> NodeCore
pub fn set_identity(&mut self, instance_id: &str, epoch: u64)
pub fn set_node_identity(&mut self, identity: NodeIdentity)
pub fn node(&self) -> &str
pub fn identity(&self) -> NodeIdentity
pub fn catalog_revision(&self) -> u64
pub fn fingerprint(&self) -> String
pub fn catalog_subjects(&self, detail_full: bool) -> Vec<Value>
pub fn catalog(&self, detail_full: bool) -> Value
pub fn catalog_snapshot(&self, detail_full: bool) -> NodeCatalogSnapshot
pub fn install_local_capabilities( &mut self, capabilities: BTreeMap<String, Value>, ) -> bool
pub fn resolve(&self, destination: &str) -> Resolution
pub fn apply_snapshot( &mut self, session: &str, advertiser: &str, snapshot: &RouteSnapshot, ) -> Result<Vec<String>, RouteError>
pub fn apply_delta( &mut self, session: &str, advertiser: &str, delta: &RouteDelta, ) -> Result<Vec<String>, RouteError>
pub fn leave(&mut self, session: &str) -> Vec<String>
pub fn applied_generation(&self, session: &str) -> Option<u64>
pub fn export_for(&self, peer_node: &str) -> Vec<RouteAdvertisement>
pub fn reachable_names(&self) -> Vec<String>
pub fn forward( &self, envelope: Envelope, ) -> Result<(String, Envelope), RouteError>
pub fn annotate_error(&self, envelope: Envelope) -> Envelope
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NodeCore
impl RefUnwindSafe for NodeCore
impl Send for NodeCore
impl Sync for NodeCore
impl Unpin for NodeCore
impl UnsafeUnpin for NodeCore
impl UnwindSafe for NodeCore
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