pub struct NodeInfo { /* private fields */ }
Implementations§
Source§impl NodeInfo
impl NodeInfo
Sourcepub fn new(node_name: &str, node_version: &str) -> Self
pub fn new(node_name: &str, node_version: &str) -> Self
Creates a new instance of NodeApi
.
§Arguments
node_name
- A string slice that holds the name of the node.node_version
- A string slice that holds the version of the node.
§Returns
A new instance of NodeApi
with the specified node name and version,
and default health status set to Healthy
and an empty list of services.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeInfo
impl<'de> Deserialize<'de> for NodeInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NodeInfo
impl RefUnwindSafe for NodeInfo
impl Send for NodeInfo
impl Sync for NodeInfo
impl Unpin for NodeInfo
impl UnwindSafe for NodeInfo
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