pub struct AdaptiveLayer { /* private fields */ }Expand description
A Tower layer that wraps a service in an AdaptiveEndpoint.
Implementations§
Source§impl AdaptiveLayer
impl AdaptiveLayer
Sourcepub fn new(config: EndpointConfig) -> Self
pub fn new(config: EndpointConfig) -> Self
Creates a layer using the supplied endpoint configuration.
Sourcepub fn config(&self) -> &EndpointConfig
pub fn config(&self) -> &EndpointConfig
Returns the configuration cloned into wrapped services.
Trait Implementations§
Source§impl Clone for AdaptiveLayer
impl Clone for AdaptiveLayer
Source§fn clone(&self) -> AdaptiveLayer
fn clone(&self) -> AdaptiveLayer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AdaptiveLayer
impl Debug for AdaptiveLayer
Source§impl Default for AdaptiveLayer
impl Default for AdaptiveLayer
Auto Trait Implementations§
impl Freeze for AdaptiveLayer
impl RefUnwindSafe for AdaptiveLayer
impl Send for AdaptiveLayer
impl Sync for AdaptiveLayer
impl Unpin for AdaptiveLayer
impl UnsafeUnpin for AdaptiveLayer
impl UnwindSafe for AdaptiveLayer
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