pub struct RefuseUnsupportedLayer;Available on crate feature
tower only.Expand description
Replaces a response this transport cannot carry with one that says so.
Implementations§
Source§impl RefuseUnsupportedLayer
impl RefuseUnsupportedLayer
Sourcepub const fn new() -> RefuseUnsupportedLayer
pub const fn new() -> RefuseUnsupportedLayer
Refuses every capability Unsupported names.
Trait Implementations§
Source§impl Clone for RefuseUnsupportedLayer
impl Clone for RefuseUnsupportedLayer
Source§fn clone(&self) -> RefuseUnsupportedLayer
fn clone(&self) -> RefuseUnsupportedLayer
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 moreimpl Copy for RefuseUnsupportedLayer
Source§impl Debug for RefuseUnsupportedLayer
impl Debug for RefuseUnsupportedLayer
Source§impl Default for RefuseUnsupportedLayer
impl Default for RefuseUnsupportedLayer
Source§fn default() -> RefuseUnsupportedLayer
fn default() -> RefuseUnsupportedLayer
Returns the “default value” for a type. Read more
Source§impl<S> Layer<S> for RefuseUnsupportedLayer
impl<S> Layer<S> for RefuseUnsupportedLayer
Source§type Service = RefuseUnsupported<S>
type Service = RefuseUnsupported<S>
The wrapped service
Source§fn layer(&self, inner: S) -> RefuseUnsupported<S>
fn layer(&self, inner: S) -> RefuseUnsupported<S>
Wrap the given service with the middleware, returning a new service
that has been decorated with the middleware.
Auto Trait Implementations§
impl Freeze for RefuseUnsupportedLayer
impl RefUnwindSafe for RefuseUnsupportedLayer
impl Send for RefuseUnsupportedLayer
impl Sync for RefuseUnsupportedLayer
impl Unpin for RefuseUnsupportedLayer
impl UnsafeUnpin for RefuseUnsupportedLayer
impl UnwindSafe for RefuseUnsupportedLayer
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