pub struct DefaultSamplingHandler;
Expand description
Default sampling handler - provides echo functionality for testing/development
DEPRECATED: Use ProductionSamplingHandler
for real applications.
This handler is maintained for backwards compatibility and testing only.
Trait Implementations§
Source§impl Clone for DefaultSamplingHandler
impl Clone for DefaultSamplingHandler
Source§fn clone(&self) -> DefaultSamplingHandler
fn clone(&self) -> DefaultSamplingHandler
Returns a duplicate of the value. Read more
1.0.0 · 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 DefaultSamplingHandler
impl Debug for DefaultSamplingHandler
Source§impl SamplingHandler for DefaultSamplingHandler
impl SamplingHandler for DefaultSamplingHandler
Source§fn handle_create_message<'life0, 'async_trait>(
&'life0 self,
request: CreateMessageRequest,
) -> Pin<Box<dyn Future<Output = Result<CreateMessageResult, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle_create_message<'life0, 'async_trait>(
&'life0 self,
request: CreateMessageRequest,
) -> Pin<Box<dyn Future<Output = Result<CreateMessageResult, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Handle a sampling/createMessage request from the server
Auto Trait Implementations§
impl Freeze for DefaultSamplingHandler
impl RefUnwindSafe for DefaultSamplingHandler
impl Send for DefaultSamplingHandler
impl Sync for DefaultSamplingHandler
impl Unpin for DefaultSamplingHandler
impl UnwindSafe for DefaultSamplingHandler
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