pub struct AllowAll;Expand description
A policy that permits every transition.
Use AllowAll in tests and prototypes where you do not need
transition restrictions. This saves writing a trivial policy impl
for every test file.
§Examples
use ready_active_safe::prelude::*;
let policy = AllowAll;
assert!(policy.is_allowed(&"ready", &"active"));
assert!(policy.is_allowed(&"active", &"ready"));Trait Implementations§
impl Copy for AllowAll
impl Eq for AllowAll
impl StructuralPartialEq for AllowAll
Auto Trait Implementations§
impl Freeze for AllowAll
impl RefUnwindSafe for AllowAll
impl Send for AllowAll
impl Sync for AllowAll
impl Unpin for AllowAll
impl UnsafeUnpin for AllowAll
impl UnwindSafe for AllowAll
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