pub struct CancelAuthority<Key> { /* private fields */ }Expand description
Affine authority to cancel one accepted start or replacement.
ⓘ
fn duplicate<Key>(authority: behavior_actors::atomic::CancelAuthority<Key>) {
let first = authority;
let second = authority;
}Applications cannot forge an operation authority from a key and number:
ⓘ
let _authority = behavior_actors::atomic::CancelAuthority {
key: "search",
operation: 1,
};Implementations§
Auto Trait Implementations§
impl<Key> Freeze for CancelAuthority<Key>where
Key: Freeze,
impl<Key> RefUnwindSafe for CancelAuthority<Key>where
Key: RefUnwindSafe,
impl<Key> Send for CancelAuthority<Key>where
Key: Send,
impl<Key> Sync for CancelAuthority<Key>where
Key: Sync,
impl<Key> Unpin for CancelAuthority<Key>where
Key: Unpin,
impl<Key> UnsafeUnpin for CancelAuthority<Key>where
Key: UnsafeUnpin,
impl<Key> UnwindSafe for CancelAuthority<Key>where
Key: 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