#[non_exhaustive]pub enum ExecProfile {
Session,
Strict,
Unattended,
}Expand description
How a permitted command is confined.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Session
Strict
Let through on its own word: held tighter than one a person approved.
Unattended
Nobody attends the session.
Implementations§
Source§impl ExecProfile
impl ExecProfile
Sourcepub fn for_permit(
basis: &Basis,
runs: Option<Runs>,
attendance: Attendance,
) -> Self
pub fn for_permit( basis: &Basis, runs: Option<Runs>, attendance: Attendance, ) -> Self
The confinement a permitted call runs under follows from why it was let through: on a command’s own word it is held tighter than one a person (or a rule, a hook, bypass) let through, and nobody attending tightens it too.
Trait Implementations§
Source§impl Clone for ExecProfile
impl Clone for ExecProfile
impl Copy for ExecProfile
Source§impl Debug for ExecProfile
impl Debug for ExecProfile
Source§impl Default for ExecProfile
impl Default for ExecProfile
impl Eq for ExecProfile
Source§impl PartialEq for ExecProfile
impl PartialEq for ExecProfile
impl StructuralPartialEq for ExecProfile
Auto Trait Implementations§
impl Forget for ExecProfile
impl Freeze for ExecProfile
impl Move for ExecProfile
impl RefUnwindSafe for ExecProfile
impl Send for ExecProfile
impl Sync for ExecProfile
impl Unpin for ExecProfile
impl UnsafeUnpin for ExecProfile
impl UnwindSafe for ExecProfile
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