Struct tower_balance::pool::PoolDiscoverer [−][src]
A wrapper around MakeService
that discovers a new service when load is high, and removes a
service when load is low. See Pool
.
Trait Implementations
impl<MS, Target, Request> Debug for PoolDiscoverer<MS, Target, Request> where
MS: MakeService<Target, Request> + Debug,
Target: Debug,
[src]
MS: MakeService<Target, Request> + Debug,
Target: Debug,
impl<MS, Target, Request> Discover for PoolDiscoverer<MS, Target, Request> where
MS: MakeService<Target, Request>,
MS::MakeError: Into<Box<dyn Error + Send + Sync>>,
MS::Error: Into<Box<dyn Error + Send + Sync>>,
Target: Clone,
[src]
MS: MakeService<Target, Request>,
MS::MakeError: Into<Box<dyn Error + Send + Sync>>,
MS::Error: Into<Box<dyn Error + Send + Sync>>,
Target: Clone,
type Key = usize
NewService key
type Service = DropNotifyService<MS::Service>
The type of Service
yielded by this Discover
.
type Error = MS::MakeError
Error produced during discovery
fn poll_discover(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<Change<Self::Key, Self::Service>, Self::Error>>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<Change<Self::Key, Self::Service>, Self::Error>>
impl<MS, Target, Request> PinnedDrop for PoolDiscoverer<MS, Target, Request> where
MS: MakeService<Target, Request>,
[src]
MS: MakeService<Target, Request>,
impl<'pin, MS, Target, Request> Unpin for PoolDiscoverer<MS, Target, Request> where
MS: MakeService<Target, Request>,
__PoolDiscoverer<'pin, MS, Target, Request>: Unpin,
[src]
MS: MakeService<Target, Request>,
__PoolDiscoverer<'pin, MS, Target, Request>: Unpin,
impl<MS, Target, Request> UnsafeUnpin for PoolDiscoverer<MS, Target, Request> where
MS: MakeService<Target, Request>,
[src]
MS: MakeService<Target, Request>,
Auto Trait Implementations
impl<MS, Target, Request> !RefUnwindSafe for PoolDiscoverer<MS, Target, Request>
impl<MS, Target, Request> Send for PoolDiscoverer<MS, Target, Request> where
MS: Send,
Target: Send,
<MS as MakeService<Target, Request>>::Future: Send,
MS: Send,
Target: Send,
<MS as MakeService<Target, Request>>::Future: Send,
impl<MS, Target, Request> Sync for PoolDiscoverer<MS, Target, Request> where
MS: Sync,
Target: Sync,
<MS as MakeService<Target, Request>>::Future: Sync,
MS: Sync,
Target: Sync,
<MS as MakeService<Target, Request>>::Future: Sync,
impl<MS, Target, Request> !UnwindSafe for PoolDiscoverer<MS, Target, Request>
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> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub 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> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,