pub struct LoadShed<S> { /* private fields */ }
Expand description
A Service
that sheds load when the inner service isn’t ready.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for LoadShed<S>where
S: Freeze,
impl<S> RefUnwindSafe for LoadShed<S>where
S: RefUnwindSafe,
impl<S> Send for LoadShed<S>where
S: Send,
impl<S> Sync for LoadShed<S>where
S: Sync,
impl<S> Unpin for LoadShed<S>where
S: Unpin,
impl<S> UnwindSafe for LoadShed<S>where
S: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)