pub struct CustomPlatformReporter { /* private fields */ }Expand description
Reports exceptions by sending a POST request to a custom platform endpoint.
This is a placeholder implementation intended for integration with a self-hosted exception collection platform.
Implementations§
Trait Implementations§
Source§impl Clone for CustomPlatformReporter
impl Clone for CustomPlatformReporter
Source§fn clone(&self) -> CustomPlatformReporter
fn clone(&self) -> CustomPlatformReporter
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 CustomPlatformReporter
impl Debug for CustomPlatformReporter
Source§impl ExceptionReporter for CustomPlatformReporter
impl ExceptionReporter for CustomPlatformReporter
Source§fn check_available<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn check_available<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Check if the endpoint is configured (non-empty).
Source§fn report<'life0, 'life1, 'async_trait>(
&'life0 self,
batch: &'life1 ExceptionBatch,
) -> Pin<Box<dyn Future<Output = CollectorResult<ReportResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn report<'life0, 'life1, 'async_trait>(
&'life0 self,
batch: &'life1 ExceptionBatch,
) -> Pin<Box<dyn Future<Output = CollectorResult<ReportResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
POST the batch to {endpoint}/api/exceptions.
Auto Trait Implementations§
impl Freeze for CustomPlatformReporter
impl RefUnwindSafe for CustomPlatformReporter
impl Send for CustomPlatformReporter
impl Sync for CustomPlatformReporter
impl Unpin for CustomPlatformReporter
impl UnsafeUnpin for CustomPlatformReporter
impl UnwindSafe for CustomPlatformReporter
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more