Struct tower_load::pending_requests::PendingRequestsDiscover [−][src]
Wraps inner
’s services with PendingRequests
.
Implementations
impl<D, I> PendingRequestsDiscover<D, I>
[src]
pub fn new<Request>(discover: D, instrument: I) -> Self where
D: Discover,
D::Service: Service<Request>,
I: Instrument<Handle, <D::Service as Service<Request>>::Response>,
[src]
D: Discover,
D::Service: Service<Request>,
I: Instrument<Handle, <D::Service as Service<Request>>::Response>,
Wraps a Discover``, wrapping all of its services with
PendingRequests`.
Trait Implementations
impl<D: Debug, I: Debug> Debug for PendingRequestsDiscover<D, I>
[src]
impl<D, I> Discover for PendingRequestsDiscover<D, I> where
D: Discover,
I: Clone,
[src]
D: Discover,
I: Clone,
type Key = D::Key
NewService key
type Service = PendingRequests<D::Service, I>
The type of Service
yielded by this Discover
.
type Error = D::Error
Error produced during discovery
fn poll_discover(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<Change<D::Key, Self::Service>, D::Error>>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<Change<D::Key, Self::Service>, D::Error>>
Yields the next discovery change set.
impl<D, I> PinnedDrop for PendingRequestsDiscover<D, I>
[src]
impl<'pin, D, I> Unpin for PendingRequestsDiscover<D, I> where
__PendingRequestsDiscover<'pin, D, I>: Unpin,
[src]
__PendingRequestsDiscover<'pin, D, I>: Unpin,
impl<D, I> UnsafeUnpin for PendingRequestsDiscover<D, I>
[src]
Auto Trait Implementations
impl<D, I> RefUnwindSafe for PendingRequestsDiscover<D, I> where
D: RefUnwindSafe,
I: RefUnwindSafe,
D: RefUnwindSafe,
I: RefUnwindSafe,
impl<D, I> Send for PendingRequestsDiscover<D, I> where
D: Send,
I: Send,
D: Send,
I: Send,
impl<D, I> Sync for PendingRequestsDiscover<D, I> where
D: Sync,
I: Sync,
D: Sync,
I: Sync,
impl<D, I> UnwindSafe for PendingRequestsDiscover<D, I> where
D: UnwindSafe,
I: UnwindSafe,
D: UnwindSafe,
I: UnwindSafe,
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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>,