pub struct Strict<E> { /* private fields */ }Expand description
An endpoint that enforces the handler’s return type matches Res.
BindableEndpoint is NOT implemented — bind!() cannot be used.
Use bind_strict!() instead, which checks the return type.
Trait Implementations§
Source§impl<E: BindableEndpoint + HasResType> StrictEndpoint for Strict<E>
impl<E: BindableEndpoint + HasResType> StrictEndpoint for Strict<E>
impl<E: ApiSpec> ApiSpec for Strict<E>
Auto Trait Implementations§
impl<E> Freeze for Strict<E>
impl<E> RefUnwindSafe for Strict<E>where
E: RefUnwindSafe,
impl<E> Send for Strict<E>where
E: Send,
impl<E> Sync for Strict<E>where
E: Sync,
impl<E> Unpin for Strict<E>where
E: Unpin,
impl<E> UnsafeUnpin for Strict<E>
impl<E> UnwindSafe for Strict<E>where
E: UnwindSafe,
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