pub struct PatchIntegrityGuard { /* private fields */ }Expand description
Guard that validates patch safety
Implementations§
Source§impl PatchIntegrityGuard
impl PatchIntegrityGuard
Sourcepub fn with_config(config: PatchIntegrityConfig) -> Self
pub fn with_config(config: PatchIntegrityConfig) -> Self
Create with custom configuration
Trait Implementations§
Source§impl Default for PatchIntegrityGuard
impl Default for PatchIntegrityGuard
Source§impl Guard for PatchIntegrityGuard
impl Guard for PatchIntegrityGuard
Source§fn handles(&self, action: &GuardAction<'_>) -> bool
fn handles(&self, action: &GuardAction<'_>) -> bool
Check if this guard handles the given action type
Source§fn check<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
action: &'life1 GuardAction<'life2>,
_context: &'life3 GuardContext,
) -> Pin<Box<dyn Future<Output = GuardResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn check<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
action: &'life1 GuardAction<'life2>,
_context: &'life3 GuardContext,
) -> Pin<Box<dyn Future<Output = GuardResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Evaluate the action
Auto Trait Implementations§
impl Freeze for PatchIntegrityGuard
impl RefUnwindSafe for PatchIntegrityGuard
impl Send for PatchIntegrityGuard
impl Sync for PatchIntegrityGuard
impl Unpin for PatchIntegrityGuard
impl UnwindSafe for PatchIntegrityGuard
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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