Struct sc_telemetry::TelemetryHandle
source · [−]pub struct TelemetryHandle { /* private fields */ }
Expand description
Handle to the TelemetryWorker
thats allows initializing the telemetry for a Substrate node.
Implementations
sourceimpl TelemetryHandle
impl TelemetryHandle
sourcepub fn start_telemetry(
&mut self,
span: TelemetrySpan,
endpoints: TelemetryEndpoints,
connection_message: ConnectionMessage
) -> TelemetryConnectionNotifier
pub fn start_telemetry(
&mut self,
span: TelemetrySpan,
endpoints: TelemetryEndpoints,
connection_message: ConnectionMessage
) -> TelemetryConnectionNotifier
Initialize the telemetry with the endpoints provided in argument for the current substrate node.
This method must be called during the substrate node initialization.
The endpoints
argument is a collection of telemetry WebSocket servers with a corresponding
verbosity level.
The connection_message
argument is a JSON object that is sent every time the connection
(re-)establishes.
Trait Implementations
sourceimpl Clone for TelemetryHandle
impl Clone for TelemetryHandle
sourcefn clone(&self) -> TelemetryHandle
fn clone(&self) -> TelemetryHandle
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for TelemetryHandle
impl Send for TelemetryHandle
impl Sync for TelemetryHandle
impl Unpin for TelemetryHandle
impl !UnwindSafe for TelemetryHandle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more