Struct wick_config::config::Middleware
source · pub struct Middleware { /* private fields */ }Expand description
Request and response operations that run before and after the main operation.
Implementations§
source§impl Middleware
impl Middleware
pub fn request(&self) -> &[ComponentOperationExpression]
pub fn request_mut(&mut self) -> &mut Vec<ComponentOperationExpression>
pub fn response(&self) -> &[ComponentOperationExpression]
pub fn response_mut(&mut self) -> &mut Vec<ComponentOperationExpression>
Trait Implementations§
source§impl AssetManager for Middleware
impl AssetManager for Middleware
type Asset = AssetReference
fn set_baseurl(&self, baseurl: &Path)
fn assets(&self) -> Assets<'_, AssetReference>
fn get_asset_flags(&self) -> u32
source§impl Clone for Middleware
impl Clone for Middleware
source§fn clone(&self) -> Middleware
fn clone(&self) -> Middleware
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for Middleware
impl Debug for Middleware
source§impl PartialEq<Middleware> for Middleware
impl PartialEq<Middleware> for Middleware
source§fn eq(&self, other: &Middleware) -> bool
fn eq(&self, other: &Middleware) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for Middleware
impl Serialize for Middleware
source§impl TryFrom<Middleware> for Middleware
impl TryFrom<Middleware> for Middleware
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
source§impl TryFrom<Middleware> for Middleware
impl TryFrom<Middleware> for Middleware
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
impl StructuralPartialEq for Middleware
Auto Trait Implementations§
impl !RefUnwindSafe for Middleware
impl Send for Middleware
impl Sync for Middleware
impl Unpin for Middleware
impl !UnwindSafe for Middleware
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