StatusError

Struct StatusError 

Source
#[non_exhaustive]
pub struct StatusError { pub code: StatusCode, pub name: String, pub brief: String, pub detail: Option<String>, pub cause: Option<Box<dyn Error + Send + Sync>>, }
Expand description

HTTP status error information.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§code: StatusCode

Http error status code.

§name: String

Http error name.

§brief: String

Brief information about http error.

§detail: Option<String>

Detail information about http error.

§cause: Option<Box<dyn Error + Send + Sync>>

Cause about http error. This field is only used for internal debugging and only used in debug mode.

Implementations§

Source§

impl StatusError

Source

pub fn brief(self, brief: impl Into<String>) -> StatusError

Sets brief field and returns Self.

Source

pub fn detail(self, detail: impl Into<String>) -> StatusError

Sets detail field and returns Self.

Source

pub fn cause<C>(self, cause: C) -> StatusError
where C: Into<Box<dyn Error + Send + Sync>>,

Sets cause field and returns Self.

Source

pub fn bad_request() -> StatusError

The request could not be understood by the server due to malformed syntax.

400 Bad Request [RFC7231, Section 6.5.1]

Source

pub fn unauthorized() -> StatusError

The request requires user authentication.

401 Unauthorized [RFC7235, Section 3.1]

Source

pub fn payment_required() -> StatusError

The request could not be processed due to lack of payment.

402 Payment Required [RFC7231, Section 6.5.2]

Source

pub fn forbidden() -> StatusError

The server refused to authorize the request.

403 Forbidden [RFC7231, Section 6.5.3]

Source

pub fn not_found() -> StatusError

The requested resource could not be found.

404 Not Found [RFC7231, Section 6.5.4]

Source

pub fn method_not_allowed() -> StatusError

The request method is not supported for the requested resource.

405 Method Not Allowed [RFC7231, Section 6.5.5]

Source

pub fn not_acceptable() -> StatusError

The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.

406 Not Acceptable [RFC7231, Section 6.5.6]

Source

pub fn proxy_authentication_required() -> StatusError

Authentication with the proxy is required.

407 Proxy Authentication Required [RFC7235, Section 3.2]

Source

pub fn request_timeout() -> StatusError

The server timed out waiting for the request.

408 Request Timeout [RFC7231, Section 6.5.7]

Source

pub fn conflict() -> StatusError

The request could not be processed because of a conflict in the request.

409 Conflict [RFC7231, Section 6.5.8]

Source

pub fn gone() -> StatusError

The resource requested is no longer available and will not be available again.

410 Gone [RFC7231, Section 6.5.9]

Source

pub fn length_required() -> StatusError

The request did not specify the length of its content, which is required by the requested resource.

411 Length Required [RFC7231, Section 6.5.10]

Source

pub fn precondition_failed() -> StatusError

The server does not meet one of the preconditions specified in the request.

412 Precondition Failed [RFC7232, Section 4.2]

Source

pub fn payload_too_large() -> StatusError

The request is larger than the server is willing or able to process.

413 Payload Too Large [RFC7231, Section 6.5.11]

Source

pub fn uri_too_long() -> StatusError

The URI provided was too long for the server to process.

414 URI Too Long [RFC7231, Section 6.5.12]

Source

pub fn unsupported_media_type() -> StatusError

The request entity has a media type which the server or resource does not support.

415 Unsupported Media Type [RFC7231, Section 6.5.13]

Source

pub fn range_not_satisfiable() -> StatusError

The portion of the requested file cannot be supplied by the server.

416 Range Not Satisfiable [RFC7233, Section 4.4]

Source

pub fn expectation_failed() -> StatusError

The server cannot meet the requirements of the expect request-header field.

417 Expectation Failed [RFC7231, Section 6.5.14]

Source

pub fn im_a_teapot() -> StatusError

I was requested to brew coffee, and I am a teapot.

418 I’m a teapot [curiously not registered by IANA but RFC2324]

Source

pub fn misdirected_request() -> StatusError

The server cannot produce a response for this request.

421 Misdirected Request RFC7540, Section 9.1.2

Source

pub fn unprocessable_entity() -> StatusError

The request was well-formed but was unable to be followed due to semantic errors.

422 Unprocessable Entity [RFC4918]

Source

pub fn locked() -> StatusError

The source or destination resource of a method is locked.

423 Locked [RFC4918]

Source

pub fn failed_dependency() -> StatusError

The method could not be performed on the resource because the requested action depended on another action and that action failed.

424 Failed Dependency [RFC4918]

Source

pub fn upgrade_required() -> StatusError

Switching to the protocol in the Upgrade header field is required.

426 Upgrade Required [RFC7231, Section 6.5.15]

Source

pub fn precondition_required() -> StatusError

The server requires the request to be conditional.

428 Precondition Required [RFC6585]

Source

pub fn too_many_requests() -> StatusError

Too many requests have been received recently.

429 Too Many Requests [RFC6585]

Source

pub fn request_header_fields_toolarge() -> StatusError

The server is unwilling to process the request because either an individual header field, or all the header fields collectively, are too large.

431 Request Header Fields Too Large [RFC6585]

Source

pub fn unavailable_for_legalreasons() -> StatusError

The requested resource is unavailable due to a legal demand to deny access to this resource.

451 Unavailable For Legal Reasons [RFC7725]

Source

pub fn internal_server_error() -> StatusError

The server encountered an internal error while processing this request.

500 Internal Server Error [RFC7231, Section 6.6.1]

Source

pub fn not_implemented() -> StatusError

The server either does not recognize the request method, or it lacks the ability to fulfill the request.

501 Not Implemented [RFC7231, Section 6.6.2]

Source

pub fn bad_gateway() -> StatusError

Received an invalid response from an inbound server it accessed while attempting to fulfill the request.

502 Bad Gateway [RFC7231, Section 6.6.3]

Source

pub fn service_unavailable() -> StatusError

The server is currently unavailable.

503 Service Unavailable [RFC7231, Section 6.6.4]

Source

pub fn gateway_timeout() -> StatusError

The server did not receive a timely response from an upstream server.

504 Gateway Timeout [RFC7231, Section 6.6.5]

Source

pub fn http_version_not_supported() -> StatusError

The server does not support, or refuses to support, the major version of HTTP that was used in the request message.

505 HTTP Version Not Supported [RFC7231, Section 6.6.6]

Source

pub fn variant_also_negotiates() -> StatusError

The server has an internal configuration error.

506 Variant Also Negotiates [RFC2295]

Source

pub fn insufficient_storage() -> StatusError

The method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request.

507 Insufficient Storage [RFC4918]

Source

pub fn loop_detected() -> StatusError

the server terminated an operation because it encountered an infinite loop while processing a request with “Depth: infinity”.

508 Loop Detected [RFC5842]

Source

pub fn not_extended() -> StatusError

Further extensions to the request are required for the server to fulfill it.

510 Not Extended [RFC2774]

Source

pub fn network_authentication_required() -> StatusError

the client needs to authenticate to gain network access.

511 Network Authentication Required [RFC6585]

Source§

impl StatusError

Source

pub fn from_code(code: StatusCode) -> Option<StatusError>

Create new StatusError with code. If code is not error, it will be None.

Trait Implementations§

Source§

impl Debug for StatusError

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Display for StatusError

Source§

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

Formats the value using the given formatter. Read more
Source§

impl EndpointOutRegister for StatusError

Source§

fn register(components: &mut Components, operation: &mut Operation)

Modify the OpenApi components section or current operation information with given argument. This function is called by macros internal.
Source§

impl Error for StatusError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<StatusError> for AppError

Source§

fn from(source: StatusError) -> Self

Converts to this type from the input type.
Source§

impl Scribe for StatusError

Source§

fn render(self, res: &mut Response)

Render data to Response.
Source§

impl ToResponses for StatusError

Source§

fn to_responses(components: &mut Components) -> Responses

Returns an ordered map of response codes to responses.
Source§

impl ToSchema for StatusError

Source§

fn to_schema(components: &mut Components) -> RefOr<Schema>

Returns a tuple of name and schema or reference to a schema that can be referenced by the name or inlined directly to responses, request bodies or parameters.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FutureExt for T

Source§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Source§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Paint for T
where T: ?Sized,

Source§

fn fg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the foreground set to value.

This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and green(), which have the same functionality but are pithier.

§Example

Set foreground color to white using fg():

use yansi::{Paint, Color};

painted.fg(Color::White);

Set foreground color to white using white().

use yansi::Paint;

painted.white();
Source§

fn primary(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Primary].

§Example
println!("{}", value.primary());
Source§

fn fixed(&self, color: u8) -> Painted<&T>

Returns self with the fg() set to [Color :: Fixed].

§Example
println!("{}", value.fixed(color));
Source§

fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the fg() set to [Color :: Rgb].

§Example
println!("{}", value.rgb(r, g, b));
Source§

fn black(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Black].

§Example
println!("{}", value.black());
Source§

fn red(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Red].

§Example
println!("{}", value.red());
Source§

fn green(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Green].

§Example
println!("{}", value.green());
Source§

fn yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Yellow].

§Example
println!("{}", value.yellow());
Source§

fn blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Blue].

§Example
println!("{}", value.blue());
Source§

fn magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Magenta].

§Example
println!("{}", value.magenta());
Source§

fn cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Cyan].

§Example
println!("{}", value.cyan());
Source§

fn white(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: White].

§Example
println!("{}", value.white());
Source§

fn bright_black(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightBlack].

§Example
println!("{}", value.bright_black());
Source§

fn bright_red(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightRed].

§Example
println!("{}", value.bright_red());
Source§

fn bright_green(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightGreen].

§Example
println!("{}", value.bright_green());
Source§

fn bright_yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightYellow].

§Example
println!("{}", value.bright_yellow());
Source§

fn bright_blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightBlue].

§Example
println!("{}", value.bright_blue());
Source§

fn bright_magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightMagenta].

§Example
println!("{}", value.bright_magenta());
Source§

fn bright_cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightCyan].

§Example
println!("{}", value.bright_cyan());
Source§

fn bright_white(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightWhite].

§Example
println!("{}", value.bright_white());
Source§

fn bg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the background set to value.

This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and on_green(), which have the same functionality but are pithier.

§Example

Set background color to red using fg():

use yansi::{Paint, Color};

painted.bg(Color::Red);

Set background color to red using on_red().

use yansi::Paint;

painted.on_red();
Source§

fn on_primary(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Primary].

§Example
println!("{}", value.on_primary());
Source§

fn on_fixed(&self, color: u8) -> Painted<&T>

Returns self with the bg() set to [Color :: Fixed].

§Example
println!("{}", value.on_fixed(color));
Source§

fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the bg() set to [Color :: Rgb].

§Example
println!("{}", value.on_rgb(r, g, b));
Source§

fn on_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Black].

§Example
println!("{}", value.on_black());
Source§

fn on_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Red].

§Example
println!("{}", value.on_red());
Source§

fn on_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Green].

§Example
println!("{}", value.on_green());
Source§

fn on_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Yellow].

§Example
println!("{}", value.on_yellow());
Source§

fn on_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Blue].

§Example
println!("{}", value.on_blue());
Source§

fn on_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Magenta].

§Example
println!("{}", value.on_magenta());
Source§

fn on_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Cyan].

§Example
println!("{}", value.on_cyan());
Source§

fn on_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: White].

§Example
println!("{}", value.on_white());
Source§

fn on_bright_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightBlack].

§Example
println!("{}", value.on_bright_black());
Source§

fn on_bright_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightRed].

§Example
println!("{}", value.on_bright_red());
Source§

fn on_bright_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightGreen].

§Example
println!("{}", value.on_bright_green());
Source§

fn on_bright_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightYellow].

§Example
println!("{}", value.on_bright_yellow());
Source§

fn on_bright_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightBlue].

§Example
println!("{}", value.on_bright_blue());
Source§

fn on_bright_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightMagenta].

§Example
println!("{}", value.on_bright_magenta());
Source§

fn on_bright_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightCyan].

§Example
println!("{}", value.on_bright_cyan());
Source§

fn on_bright_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightWhite].

§Example
println!("{}", value.on_bright_white());
Source§

fn attr(&self, value: Attribute) -> Painted<&T>

Enables the styling Attribute value.

This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality but are pithier.

§Example

Make text bold using attr():

use yansi::{Paint, Attribute};

painted.attr(Attribute::Bold);

Make text bold using using bold().

use yansi::Paint;

painted.bold();
Source§

fn bold(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Bold].

§Example
println!("{}", value.bold());
Source§

fn dim(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Dim].

§Example
println!("{}", value.dim());
Source§

fn italic(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Italic].

§Example
println!("{}", value.italic());
Source§

fn underline(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Underline].

§Example
println!("{}", value.underline());

Returns self with the attr() set to [Attribute :: Blink].

§Example
println!("{}", value.blink());

Returns self with the attr() set to [Attribute :: RapidBlink].

§Example
println!("{}", value.rapid_blink());
Source§

fn invert(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Invert].

§Example
println!("{}", value.invert());
Source§

fn conceal(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Conceal].

§Example
println!("{}", value.conceal());
Source§

fn strike(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Strike].

§Example
println!("{}", value.strike());
Source§

fn quirk(&self, value: Quirk) -> Painted<&T>

Enables the yansi Quirk value.

This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are pithier.

§Example

Enable wrapping using .quirk():

use yansi::{Paint, Quirk};

painted.quirk(Quirk::Wrap);

Enable wrapping using wrap().

use yansi::Paint;

painted.wrap();
Source§

fn mask(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Mask].

§Example
println!("{}", value.mask());
Source§

fn wrap(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Wrap].

§Example
println!("{}", value.wrap());
Source§

fn linger(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Linger].

§Example
println!("{}", value.linger());
Source§

fn clear(&self) -> Painted<&T>

👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

Returns self with the quirk() set to [Quirk :: Clear].

§Example
println!("{}", value.clear());
Source§

fn resetting(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Resetting].

§Example
println!("{}", value.resetting());
Source§

fn bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Bright].

§Example
println!("{}", value.bright());
Source§

fn on_bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: OnBright].

§Example
println!("{}", value.on_bright());
Source§

fn whenever(&self, value: Condition) -> Painted<&T>

Conditionally enable styling based on whether the Condition value applies. Replaces any previous condition.

See the crate level docs for more details.

§Example

Enable styling painted only when both stdout and stderr are TTYs:

use yansi::{Paint, Condition};

painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
Source§

fn new(self) -> Painted<Self>
where Self: Sized,

Create a new Painted with a default Style. Read more
Source§

fn paint<S>(&self, style: S) -> Painted<&Self>
where S: Into<Style>,

Apply a style wholesale to self. Any previous style is replaced. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToCompactString for T
where T: Display,

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> ValidateIp for T
where T: ToString,

Source§

fn validate_ipv4(&self) -> bool

Validates whether the given string is an IP V4
Source§

fn validate_ipv6(&self) -> bool

Validates whether the given string is an IP V6
Source§

fn validate_ip(&self) -> bool

Validates whether the given string is an IP
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<P> Writer for P
where P: Scribe + Send,

Source§

fn write<'life0, 'life1, 'life2, 'async_trait>( self, _req: &'life0 mut Request, _depot: &'life1 mut Depot, res: &'life2 mut Response, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, P: 'async_trait,

Write data to Response.
Source§

impl<T> CacheError for T
where T: Error + Send + Sync + 'static,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T