pub enum PuppetOperationError {
PermissionDenied(PermissionDeniedError),
PuppetDoesNotExist(PuppetDoesNotExistError),
}Expand description
Represents errors that can occur during puppet operations.
This error type encompasses two possible scenarios:
PermissionDenied: The caller does not have permission to perform the operation on the puppet.PuppetDoesNotExist: The specified puppet does not exist.
§Panics
This type does not panic.
Variants§
PermissionDenied(PermissionDeniedError)
PuppetDoesNotExist(PuppetDoesNotExistError)
Trait Implementations§
Source§impl Debug for PuppetOperationError
impl Debug for PuppetOperationError
Source§impl Display for PuppetOperationError
impl Display for PuppetOperationError
Source§impl Error for PuppetOperationError
impl Error for PuppetOperationError
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 From<PermissionDeniedError> for PuppetOperationError
impl From<PermissionDeniedError> for PuppetOperationError
Source§fn from(source: PermissionDeniedError) -> Self
fn from(source: PermissionDeniedError) -> Self
Converts to this type from the input type.
Source§impl From<PuppetDoesNotExistError> for PuppetOperationError
impl From<PuppetDoesNotExistError> for PuppetOperationError
Source§fn from(source: PuppetDoesNotExistError) -> Self
fn from(source: PuppetDoesNotExistError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PuppetOperationError
impl RefUnwindSafe for PuppetOperationError
impl Send for PuppetOperationError
impl Sync for PuppetOperationError
impl Unpin for PuppetOperationError
impl UnwindSafe for PuppetOperationError
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