pub struct OnLeft<Service, Fallback, Req> { /* private fields */ }
Available on crate feature
tower
only.Expand description
LeftPayload
をhandleするService
です。
Trait Implementations§
Source§impl<State, Service, Fallback> Service<(State, Event)> for OnLeft<Service, Fallback, (State, LeftPayload)>
impl<State, Service, Fallback> Service<(State, Event)> for OnLeft<Service, Fallback, (State, LeftPayload)>
Source§type Future = Either<WrapErrorFuture<<Service as Service<(State, LeftPayload)>>::Future, <Service as Service<(State, LeftPayload)>>::Error>, <Fallback as Service<(State, Event)>>::Future>
type Future = Either<WrapErrorFuture<<Service as Service<(State, LeftPayload)>>::Future, <Service as Service<(State, LeftPayload)>>::Error>, <Fallback as Service<(State, Event)>>::Future>
The future response value.
Source§impl<State, Service, Fallback> Service<(State, Event)> for OnLeft<Service, Fallback, LeftPayload>
impl<State, Service, Fallback> Service<(State, Event)> for OnLeft<Service, Fallback, LeftPayload>
Source§type Future = Either<WrapErrorFuture<<Service as Service<LeftPayload>>::Future, <Service as Service<LeftPayload>>::Error>, <Fallback as Service<(State, Event)>>::Future>
type Future = Either<WrapErrorFuture<<Service as Service<LeftPayload>>::Future, <Service as Service<LeftPayload>>::Error>, <Fallback as Service<(State, Event)>>::Future>
The future response value.
Source§impl<Service, Fallback> Service<Event> for OnLeft<Service, Fallback, LeftPayload>
impl<Service, Fallback> Service<Event> for OnLeft<Service, Fallback, LeftPayload>
Source§type Future = Either<WrapErrorFuture<<Service as Service<LeftPayload>>::Future, <Service as Service<LeftPayload>>::Error>, <Fallback as Service<Event>>::Future>
type Future = Either<WrapErrorFuture<<Service as Service<LeftPayload>>::Future, <Service as Service<LeftPayload>>::Error>, <Fallback as Service<Event>>::Future>
The future response value.
Auto Trait Implementations§
impl<Service, Fallback, Req> Freeze for OnLeft<Service, Fallback, Req>
impl<Service, Fallback, Req> RefUnwindSafe for OnLeft<Service, Fallback, Req>
impl<Service, Fallback, Req> Send for OnLeft<Service, Fallback, Req>
impl<Service, Fallback, Req> Sync for OnLeft<Service, Fallback, Req>
impl<Service, Fallback, Req> Unpin for OnLeft<Service, Fallback, Req>
impl<Service, Fallback, Req> UnwindSafe for OnLeft<Service, Fallback, Req>
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