pub struct DetectService<D, S> {
pub detector: D,
pub inner: S,
}Expand description
DetectService is a service that detects a certain pattern in the input stream and forwards the detected pattern and the wrapped input stream to the inner service.
Fields§
§detector: D§inner: STrait Implementations§
Source§impl<R, S, D, CX> Service<(R, CX)> for DetectService<D, S>
impl<R, S, D, CX> Service<(R, CX)> for DetectService<D, S>
Source§type Response = <S as Service<(<D as Detect<R>>::DetOut, <D as Detect<R>>::IOOut, CX)>>::Response
type Response = <S as Service<(<D as Detect<R>>::DetOut, <D as Detect<R>>::IOOut, CX)>>::Response
The type of response returned by this service.
Auto Trait Implementations§
impl<D, S> Freeze for DetectService<D, S>
impl<D, S> RefUnwindSafe for DetectService<D, S>where
D: RefUnwindSafe,
S: RefUnwindSafe,
impl<D, S> Send for DetectService<D, S>
impl<D, S> Sync for DetectService<D, S>
impl<D, S> Unpin for DetectService<D, S>
impl<D, S> UnwindSafe for DetectService<D, S>where
D: UnwindSafe,
S: UnwindSafe,
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