pub enum CommandPolicy {
Any,
Only(Vec<String>),
}Variants§
Any
Any command the service itself allows (still subject to the hard exposure rules).
Only(Vec<String>)
Only these command names.
Trait Implementations§
Source§impl Clone for CommandPolicy
impl Clone for CommandPolicy
Source§impl Debug for CommandPolicy
impl Debug for CommandPolicy
impl Eq for CommandPolicy
Source§impl PartialEq for CommandPolicy
impl PartialEq for CommandPolicy
impl StructuralPartialEq for CommandPolicy
Auto Trait Implementations§
impl Freeze for CommandPolicy
impl RefUnwindSafe for CommandPolicy
impl Send for CommandPolicy
impl Sync for CommandPolicy
impl Unpin for CommandPolicy
impl UnsafeUnpin for CommandPolicy
impl UnwindSafe for CommandPolicy
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