Struct LoadShedLayer

struct LoadShedLayer { ... }

A Layer to wrap services in LoadShed middleware.

Implementations

impl LoadShedLayer

const fn new() -> Self

Creates a new layer.

impl Clone for LoadShedLayer

fn clone(self: &Self) -> LoadShedLayer

impl Debug for LoadShedLayer

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Default for LoadShedLayer

fn default() -> LoadShedLayer

impl Freeze for LoadShedLayer

impl RefUnwindSafe for LoadShedLayer

impl Send for LoadShedLayer

impl Sync for LoadShedLayer

impl Unpin for LoadShedLayer

impl UnsafeUnpin for LoadShedLayer

impl UnwindSafe for LoadShedLayer

impl<S> Layer for LoadShedLayer

fn layer(self: &Self, service: S) -> <Self as >::Service

impl<T> Any for LoadShedLayer

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for LoadShedLayer

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for LoadShedLayer

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for LoadShedLayer

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for LoadShedLayer

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for LoadShedLayer

impl<T> ToOwned for LoadShedLayer

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T> WithSubscriber for LoadShedLayer

impl<T, U> Into for LoadShedLayer

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for LoadShedLayer

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for LoadShedLayer

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>