pub enum Overwrite {
T,
F,
}
Variants§
Implementations§
Trait Implementations§
Source§impl FromRequest for Overwrite
impl FromRequest for Overwrite
Source§type Error = InvalidOverwriteHeader
type Error = InvalidOverwriteHeader
The associated error which can be returned.
Source§type Future = Ready<Result<Overwrite, <Overwrite as FromRequest>::Error>>
type Future = Ready<Result<Overwrite, <Overwrite as FromRequest>::Error>>
Future that resolves to a
Self
. Read moreSource§fn extract(req: &HttpRequest) -> Self::Future
fn extract(req: &HttpRequest) -> Self::Future
Create a
Self
from request head asynchronously. Read moreSource§fn from_request(req: &HttpRequest, _payload: &mut Payload) -> Self::Future
fn from_request(req: &HttpRequest, _payload: &mut Payload) -> Self::Future
Create a
Self
from request parts asynchronously.impl StructuralPartialEq for Overwrite
Auto Trait Implementations§
impl Freeze for Overwrite
impl RefUnwindSafe for Overwrite
impl Send for Overwrite
impl Sync for Overwrite
impl Unpin for Overwrite
impl UnwindSafe for Overwrite
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more