Struct debug_interface::NodeDebugClient
source · [−]pub struct NodeDebugClient { /* private fields */ }
Expand description
Implement default utility client for NodeDebugInterface
Implementations
sourceimpl NodeDebugClient
impl NodeDebugClient
sourcepub fn new<A: AsRef<str>>(address: A, port: u16) -> Self
pub fn new<A: AsRef<str>>(address: A, port: u16) -> Self
Create NodeDebugInterfaceClient from a valid socket address.
pub fn from_url(url: Url) -> Self
sourcepub fn get_node_metric<S: AsRef<str>>(&self, metric: S) -> Result<Option<i64>>
pub fn get_node_metric<S: AsRef<str>>(&self, metric: S) -> Result<Option<i64>>
Retrieves the individual node metric. Requires all sub fields to match in alphabetical order.
sourcepub fn get_node_metric_with_name(
&self,
metric: &str
) -> Result<Option<HashMap<String, i64>>>
pub fn get_node_metric_with_name(
&self,
metric: &str
) -> Result<Option<HashMap<String, i64>>>
Retrieves all node metrics for a given metric name. Allows for filtering metrics by fields afterwards.
pub fn get_node_metrics(&self) -> Result<HashMap<String, i64>>
Auto Trait Implementations
impl !RefUnwindSafe for NodeDebugClient
impl Send for NodeDebugClient
impl Sync for NodeDebugClient
impl Unpin for NodeDebugClient
impl !UnwindSafe for NodeDebugClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more