pub struct TraceRouter { /* private fields */ }Expand description
Pub-sub router for trace data
Implementations§
Source§impl TraceRouter
impl TraceRouter
Sourcepub fn new(
cancellation_token: CancellationToken,
) -> (Arc<Self>, impl Future<Output = Result<()>>)
pub fn new( cancellation_token: CancellationToken, ) -> (Arc<Self>, impl Future<Output = Result<()>>)
Create a new trace router with the default metadata-only store
Sourcepub fn new_with_store(
store: Arc<dyn Store>,
cancellation_token: CancellationToken,
) -> (Arc<Self>, impl Future<Output = Result<()>>)
pub fn new_with_store( store: Arc<dyn Store>, cancellation_token: CancellationToken, ) -> (Arc<Self>, impl Future<Output = Result<()>>)
Create a new trace router with a specific store implementation
pub fn sender(&self) -> Sender
Sourcepub async fn subscribe_all_blocking(
&self,
) -> Result<(Receiver, Vec<IpcMessageWithId>)>
pub async fn subscribe_all_blocking( &self, ) -> Result<(Receiver, Vec<IpcMessageWithId>)>
Subscribe to all data, applying backpressure when needed
Sourcepub async fn subscribe(
&self,
) -> Result<(TraceSink, Receiver, Vec<IpcMessageWithId>)>
pub async fn subscribe( &self, ) -> Result<(TraceSink, Receiver, Vec<IpcMessageWithId>)>
Subscribe to trace streams
pub async fn subscribe_all_blocking_stream( &self, ) -> Result<impl Stream<Item = IpcMessageWithId> + use<>>
pub async fn subscribe_stream( &self, ) -> Result<(TraceSink, impl Stream<Item = IpcMessageWithId> + use<>)>
Auto Trait Implementations§
impl Freeze for TraceRouter
impl RefUnwindSafe for TraceRouter
impl Send for TraceRouter
impl Sync for TraceRouter
impl Unpin for TraceRouter
impl UnsafeUnpin for TraceRouter
impl UnwindSafe for TraceRouter
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