pub struct UserDataViolation {
pub path: PathBuf,
pub rule: Rule,
pub detail: String,
}Expand description
A launch refused before anything started. From<UserDataViolation> for Error keeps ? working
in code that returns crate::Result; match on rule where the reason matters.
Fields§
§path: PathBuf§rule: Rule§detail: StringTrait Implementations§
Source§impl Clone for UserDataViolation
impl Clone for UserDataViolation
Source§impl Debug for UserDataViolation
impl Debug for UserDataViolation
Source§impl Display for UserDataViolation
impl Display for UserDataViolation
impl Eq for UserDataViolation
Source§impl Error for UserDataViolation
impl Error for UserDataViolation
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 From<UserDataViolation> for Error
impl From<UserDataViolation> for Error
Source§fn from(v: UserDataViolation) -> Self
fn from(v: UserDataViolation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UserDataViolation
impl PartialEq for UserDataViolation
impl StructuralPartialEq for UserDataViolation
Auto Trait Implementations§
impl Freeze for UserDataViolation
impl RefUnwindSafe for UserDataViolation
impl Send for UserDataViolation
impl Sync for UserDataViolation
impl Unpin for UserDataViolation
impl UnsafeUnpin for UserDataViolation
impl UnwindSafe for UserDataViolation
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