pub struct TelemetryContext { /* private fields */ }Expand description
Telemetry context for tracking function execution.
Implementations§
Source§impl TelemetryContext
impl TelemetryContext
Sourcepub fn record_completion(&self, success: bool, error: Option<&ServerlessError>)
pub fn record_completion(&self, success: bool, error: Option<&ServerlessError>)
Records the completion of a function execution.
§Arguments
success- Whether the execution was successfulerror- Optional error information if the execution failed
Auto Trait Implementations§
impl Freeze for TelemetryContext
impl RefUnwindSafe for TelemetryContext
impl Send for TelemetryContext
impl Sync for TelemetryContext
impl Unpin for TelemetryContext
impl UnsafeUnpin for TelemetryContext
impl UnwindSafe for TelemetryContext
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