pub enum MiddlewareAction {
Proceed,
Respond {
response: Response,
validate_origin: bool,
validate_hosts: bool,
},
}
Expand description
Request middleware action
Variants§
Proceed
Proceed with standard JSON-RPC behaviour.
Respond
Terminate the request and return a response.
Trait Implementations§
Source§impl Debug for MiddlewareAction
impl Debug for MiddlewareAction
Auto Trait Implementations§
impl Freeze for MiddlewareAction
impl RefUnwindSafe for MiddlewareAction
impl Send for MiddlewareAction
impl Sync for MiddlewareAction
impl Unpin for MiddlewareAction
impl UnwindSafe for MiddlewareAction
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