pub struct ExternalEffectMetadataRecord { /* private fields */ }Expand description
One structured external effect observation at a node boundary.
Implementations§
Source§impl ExternalEffectMetadataRecord
impl ExternalEffectMetadataRecord
Sourcepub fn new(
kind: ExternalEffectMetadataKind,
context: NodeContext,
effect: EffectCapability,
operation: impl Into<String>,
target: impl Into<String>,
response_status: Option<String>,
) -> Self
pub fn new( kind: ExternalEffectMetadataKind, context: NodeContext, effect: EffectCapability, operation: impl Into<String>, target: impl Into<String>, response_status: Option<String>, ) -> Self
Create an external effect observation.
Sourcepub fn requested(
context: NodeContext,
effect: EffectCapability,
operation: impl Into<String>,
target: impl Into<String>,
) -> Self
pub fn requested( context: NodeContext, effect: EffectCapability, operation: impl Into<String>, target: impl Into<String>, ) -> Self
Create an external effect request observation.
Sourcepub fn completed(
context: NodeContext,
effect: EffectCapability,
operation: impl Into<String>,
target: impl Into<String>,
response_status: impl Into<String>,
) -> Self
pub fn completed( context: NodeContext, effect: EffectCapability, operation: impl Into<String>, target: impl Into<String>, response_status: impl Into<String>, ) -> Self
Create a completed external effect observation.
Sourcepub fn failed(
context: NodeContext,
effect: EffectCapability,
operation: impl Into<String>,
target: impl Into<String>,
response_status: Option<String>,
) -> Self
pub fn failed( context: NodeContext, effect: EffectCapability, operation: impl Into<String>, target: impl Into<String>, response_status: Option<String>, ) -> Self
Create a failed external effect observation.
Sourcepub const fn kind(&self) -> ExternalEffectMetadataKind
pub const fn kind(&self) -> ExternalEffectMetadataKind
External effect observation kind.
Sourcepub const fn context(&self) -> &NodeContext
pub const fn context(&self) -> &NodeContext
Runtime context for the node that observed the external effect.
Sourcepub const fn effect(&self) -> EffectCapability
pub const fn effect(&self) -> EffectCapability
Declared effect capability associated with this observation.
Sourcepub fn response_status(&self) -> Option<&str>
pub fn response_status(&self) -> Option<&str>
Stable response status associated with this observation, when known.
Trait Implementations§
Source§impl Clone for ExternalEffectMetadataRecord
impl Clone for ExternalEffectMetadataRecord
Source§fn clone(&self) -> ExternalEffectMetadataRecord
fn clone(&self) -> ExternalEffectMetadataRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExternalEffectMetadataRecord
impl Debug for ExternalEffectMetadataRecord
Source§impl PartialEq for ExternalEffectMetadataRecord
impl PartialEq for ExternalEffectMetadataRecord
Source§fn eq(&self, other: &ExternalEffectMetadataRecord) -> bool
fn eq(&self, other: &ExternalEffectMetadataRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ExternalEffectMetadataRecord
impl StructuralPartialEq for ExternalEffectMetadataRecord
Auto Trait Implementations§
impl Freeze for ExternalEffectMetadataRecord
impl RefUnwindSafe for ExternalEffectMetadataRecord
impl Send for ExternalEffectMetadataRecord
impl Sync for ExternalEffectMetadataRecord
impl Unpin for ExternalEffectMetadataRecord
impl UnsafeUnpin for ExternalEffectMetadataRecord
impl UnwindSafe for ExternalEffectMetadataRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).