[−][src]Struct xaynet::utils::trace::Traced
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]
F: FnOnce(T) -> U,
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]
Self: Handler<Request>,
fn handle_request(&mut self, req: Traced<Request>)
[src]
Handles a Request
.
impl<T: Hash> Hash for Traced<T>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<R, S> Purge<Traced<Request>> for PhaseState<R, S> where
Self: Purge<Request>,
[src]
Self: Purge<Request>,
fn handle_outdated_request(&mut self, req: Traced<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.
fn poll_ready(&mut self, _cx: &mut Context) -> Poll<Result<(), Self::Error>>
[src]
fn call(&mut self, req: Traced<MessageParserRequest>) -> Self::Future
[src]
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]
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>>,
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.
fn poll_ready(&mut self, cx: &mut Context) -> Poll<Result<(), Self::Error>>
[src]
fn call(&mut self, req: Traced<MessageParserRequest>) -> Self::Future
[src]
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.
fn poll_ready(&mut self, cx: &mut Context) -> Poll<Result<(), Self::Error>>
[src]
fn call(&mut self, req: Traced<PreProcessorRequest>) -> Self::Future
[src]
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]
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>>,
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.
fn poll_ready(&mut self, cx: &mut Context) -> Poll<Result<(), Self::Error>>
[src]
fn call(&mut self, req: Traced<PreProcessorRequest>) -> Self::Future
[src]
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.
fn poll_ready(&mut self, _cx: &mut Context) -> Poll<Result<(), Self::Error>>
[src]
fn call(&mut self, req: Traced<StateMachineRequest>) -> Self::Future
[src]
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]
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>>,
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.
fn poll_ready(&mut self, cx: &mut Context) -> Poll<Result<(), Self::Error>>
[src]
fn call(&mut self, req: Traced<StateMachineRequest>) -> Self::Future
[src]
impl<T> Traceable for Traced<T>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for Traced<T>
impl<T> Send for Traced<T> where
T: Send,
T: Send,
impl<T> Sync for Traced<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Traced<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for Traced<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,