Struct tower_balance::p2c::BalanceMake [−][src]
Makes Balancer
s given an inner service that makes Discover
s.
Implementations
impl<S, Req> BalanceMake<S, Req>
[src]
pub fn from_entropy(make_discover: S) -> Self
[src]
Initializes a P2C load balancer from the OS’s entropy source.
Trait Implementations
impl<S: Clone, Req: Clone> Clone for BalanceMake<S, Req>
[src]
fn clone(&self) -> BalanceMake<S, Req>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<S: Debug, Req: Debug> Debug for BalanceMake<S, Req>
[src]
impl<S, Target, Req> Service<Target> for BalanceMake<S, Req> where
S: Service<Target>,
S::Response: Discover,
<S::Response as Discover>::Service: Service<Req>,
<<S::Response as Discover>::Service as Service<Req>>::Error: Into<Box<dyn Error + Send + Sync>>,
[src]
S: Service<Target>,
S::Response: Discover,
<S::Response as Discover>::Service: Service<Req>,
<<S::Response as Discover>::Service as Service<Req>>::Error: Into<Box<dyn Error + Send + Sync>>,
type Response = Balance<S::Response, Req>
Responses given by the service.
type Error = S::Error
Errors produced by the service.
type Future = MakeFuture<S::Future, Req>
The future response value.
fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
[src]
fn call(&mut self, target: Target) -> Self::Future
[src]
Auto Trait Implementations
impl<S, Req> RefUnwindSafe for BalanceMake<S, Req> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, Req> Send for BalanceMake<S, Req> where
S: Send,
S: Send,
impl<S, Req> Sync for BalanceMake<S, Req> where
S: Sync,
S: Sync,
impl<S, Req> Unpin for BalanceMake<S, Req> where
S: Unpin,
S: Unpin,
impl<S, Req> UnwindSafe for BalanceMake<S, Req> where
S: UnwindSafe,
S: 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> 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<M, S, Target, Request> MakeService<Target, Request> for M where
S: Service<Request>,
M: Service<Target, Response = S>,
[src]
S: Service<Request>,
M: Service<Target, Response = S>,
type Response = <S as Service<Request>>::Response
Responses given by the service
type Error = <S as Service<Request>>::Error
Errors produced by the service
type Service = S
The Service
value created by this factory
type MakeError = <M as Service<Target>>::Error
Errors produced while building a service.
type Future = <M as Service<Target>>::Future
The future of the Service
instance.
pub fn poll_ready(
&mut self,
cx: &mut Context<'_>
) -> Poll<Result<(), <M as MakeService<Target, Request>>::MakeError>>
[src]
&mut self,
cx: &mut Context<'_>
) -> Poll<Result<(), <M as MakeService<Target, Request>>::MakeError>>
pub fn make_service(
&mut self,
target: Target
) -> <M as MakeService<Target, Request>>::Future
[src]
&mut self,
target: Target
) -> <M as MakeService<Target, Request>>::Future
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
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>,