Enum dce_router::api::BeforeController
source · pub enum BeforeController<Raw: RawRequest + 'static> {
Sync(fn(_: RequestContext<Raw>) -> DceResult<RequestContext<Raw>>),
Async(Box<dyn Fn(RequestContext<Raw>) -> Pin<Box<dyn Future<Output = DceResult<RequestContext<Raw>>> + Send>> + Send + Sync>),
}Variants§
Sync(fn(_: RequestContext<Raw>) -> DceResult<RequestContext<Raw>>)
Async(Box<dyn Fn(RequestContext<Raw>) -> Pin<Box<dyn Future<Output = DceResult<RequestContext<Raw>>> + Send>> + Send + Sync>)
Trait Implementations§
Auto Trait Implementations§
impl<Raw> !RefUnwindSafe for BeforeController<Raw>
impl<Raw> Send for BeforeController<Raw>
impl<Raw> Sync for BeforeController<Raw>
impl<Raw> Unpin for BeforeController<Raw>
impl<Raw> !UnwindSafe for BeforeController<Raw>
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