[][src]Struct xaynet::utils::trace::Traced

pub struct Traced<T> { /* fields omitted */ }

A wrapper that associates a tracing span to T

Implementations

impl<T> Traced<T>[src]

pub fn new(req: T, span: Span) -> Self[src]

pub fn map<F, U>(self, f: F) -> Traced<U> where
    F: FnOnce(T) -> U, 
[src]

Trait Implementations

impl<T: Clone> Clone for Traced<T>[src]

impl<T: Debug> Debug for Traced<T>[src]

impl<R, S> Handler<Traced<Request>> for PhaseState<R, S> where
    Self: Handler<Request>, 
[src]

fn handle_request(&mut self, req: Traced<Request>)[src]

Handles a Request.

impl<T: Hash> Hash for Traced<T>[src]

impl<R, S> Purge<Traced<Request>> for PhaseState<R, S> where
    Self: Purge<Request>, 
[src]

impl Service<Traced<MessageParserRequest>> for MessageParserService[src]

type Response = MessageParserResponse

Responses given by the service.

type Error = Infallible

Errors produced by the service.

type Future = Either<Ready<Result<Self::Response, Self::Error>>, Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + Sync + 'static>>>

The future response value.

impl<MP, PP, SM> Service<Traced<MessageParserRequest>> for PetMessageService<MP, PP, SM> where
    MP: Service<Traced<MessageParserRequest>, Response = MessageParserResponse> + Clone + Send + 'static,
    <MP as Service<Traced<MessageParserRequest>>>::Future: Send + 'static,
    <MP as Service<Traced<MessageParserRequest>>>::Error: Into<Box<dyn Error + Sync + Send + 'static>>, 
[src]

type Response = MessageParserResponse

Responses given by the service.

type Error = Box<dyn Error + Send + Sync + 'static>

Errors produced by the service.

type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'static>>

The future response value.

impl Service<Traced<PreProcessorRequest>> for PreProcessorService[src]

type Response = PreProcessorResponse

Responses given by the service.

type Error = Infallible

Errors produced by the service.

type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + Sync + 'static>>

The future response value.

impl<MP, PP, SM> Service<Traced<PreProcessorRequest>> for PetMessageService<MP, PP, SM> where
    PP: Service<Traced<PreProcessorRequest>, Response = PreProcessorResponse> + Clone + Send + 'static,
    <PP as Service<Traced<PreProcessorRequest>>>::Future: Send + 'static,
    <PP as Service<Traced<PreProcessorRequest>>>::Error: Into<Box<dyn Error + Send + Sync + 'static>>, 
[src]

type Response = PreProcessorResponse

Responses given by the service.

type Error = Box<dyn Error + Send + Sync + 'static>

Errors produced by the service.

type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'static>>

The future response value.

impl Service<Traced<StateMachineRequest>> for StateMachineService[src]

type Response = StateMachineResponse

Responses given by the service.

type Error = Infallible

Errors produced by the service.

type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'static>>

The future response value.

impl<MP, PP, SM> Service<Traced<StateMachineRequest>> for PetMessageService<MP, PP, SM> where
    SM: Service<Traced<StateMachineRequest>, Response = StateMachineResponse> + Clone + Send + 'static,
    <SM as Service<Traced<StateMachineRequest>>>::Future: Send + 'static,
    <SM as Service<Traced<StateMachineRequest>>>::Error: Into<Box<dyn Error + Send + Sync + 'static>>, 
[src]

type Response = StateMachineResponse

Responses given by the service.

type Error = Box<dyn Error + Send + Sync + 'static>

Errors produced by the service.

type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'static>>

The future response value.

impl<T> Traceable for Traced<T>[src]

type Target = T

Auto Trait Implementations

impl<T> !RefUnwindSafe for Traced<T>

impl<T> Send for Traced<T> where
    T: Send

impl<T> Sync for Traced<T> where
    T: Sync

impl<T> Unpin for Traced<T> where
    T: Unpin

impl<T> !UnwindSafe for Traced<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]