pub enum PipeDeniedReason {
Empty,
ShellSyntax,
ProgramNotAllowed(String),
}Expand description
Reason a pipe command was denied.
Variants§
Empty
No command was supplied.
ShellSyntax
Shell metacharacters or control characters were present.
ProgramNotAllowed(String)
The command starts with a program that this policy does not allow.
Trait Implementations§
Source§impl Clone for PipeDeniedReason
impl Clone for PipeDeniedReason
Source§fn clone(&self) -> PipeDeniedReason
fn clone(&self) -> PipeDeniedReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PipeDeniedReason
impl Debug for PipeDeniedReason
Source§impl Display for PipeDeniedReason
impl Display for PipeDeniedReason
Source§impl Error for PipeDeniedReason
impl Error for PipeDeniedReason
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for PipeDeniedReason
impl PartialEq for PipeDeniedReason
Source§fn eq(&self, other: &PipeDeniedReason) -> bool
fn eq(&self, other: &PipeDeniedReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PipeDeniedReason
impl StructuralPartialEq for PipeDeniedReason
Auto Trait Implementations§
impl Freeze for PipeDeniedReason
impl RefUnwindSafe for PipeDeniedReason
impl Send for PipeDeniedReason
impl Sync for PipeDeniedReason
impl Unpin for PipeDeniedReason
impl UnsafeUnpin for PipeDeniedReason
impl UnwindSafe for PipeDeniedReason
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