pub struct Control<S, P>where
S: Clone,{ /* private fields */ }Expand description
This endpoint implements the Control component.
It can be mounted on the following components:
Implementations§
Source§impl<S, P> Control<S, P>where
S: AsRef<dyn AuthenticateRequest> + Clone + Send + Sync + 'static,
P: OperationPrivilegeMapping + 'static,
<P as OperationPrivilegeMapping>::Get: Send,
<P as OperationPrivilegeMapping>::Put: Send,
<P as OperationPrivilegeMapping>::Patch: Send,
<P as OperationPrivilegeMapping>::Post: Send,
impl<S, P> Control<S, P>where
S: AsRef<dyn AuthenticateRequest> + Clone + Send + Sync + 'static,
P: OperationPrivilegeMapping + 'static,
<P as OperationPrivilegeMapping>::Get: Send,
<P as OperationPrivilegeMapping>::Put: Send,
<P as OperationPrivilegeMapping>::Patch: Send,
<P as OperationPrivilegeMapping>::Post: Send,
pub fn get<H, T>(self, handler: H) -> Control<S, P>where
H: Handler<T, S>,
T: 'static,
pub fn put<H, T>(self, handler: H) -> Control<S, P>where
H: Handler<T, S>,
T: 'static,
pub fn patch<H, T>(self, handler: H) -> Control<S, P>where
H: Handler<T, S>,
T: 'static,
Sourcepub fn reset_to_defaults<H, T>(self, handler: H) -> Control<S, P>where
H: Handler<T, S>,
T: 'static,
pub fn reset_to_defaults<H, T>(self, handler: H) -> Control<S, P>where
H: Handler<T, S>,
T: 'static,
Perform the ResetToDefaults operation on this Control instance.
pub fn into_router(self) -> Router<S>
Trait Implementations§
Auto Trait Implementations§
impl<S, P> Freeze for Control<S, P>
impl<S, P> !RefUnwindSafe for Control<S, P>
impl<S, P> Send for Control<S, P>
impl<S, P> !Sync for Control<S, P>
impl<S, P> Unpin for Control<S, P>
impl<S, P> !UnwindSafe for Control<S, P>
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