#[non_exhaustive]pub enum OsPatchError {
YearTooSmall,
YearWontFit,
MonthWontFit,
}Expand description
Error returned by OsPatch::new.
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.
YearTooSmall
year under 2000, which is not supported by the format.
YearWontFit
year over 6095, which is not supported by the format (year - 2000 won’t fit into 12 bits).
MonthWontFit
month over 15, which is not supported by the format (won’t fit into 4 bits).
Trait Implementations§
Source§impl Debug for OsPatchError
impl Debug for OsPatchError
Source§impl Display for OsPatchError
impl Display for OsPatchError
Source§impl Error for OsPatchError
impl Error for OsPatchError
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 OsPatchError
impl PartialEq for OsPatchError
impl StructuralPartialEq for OsPatchError
Auto Trait Implementations§
impl Freeze for OsPatchError
impl RefUnwindSafe for OsPatchError
impl Send for OsPatchError
impl Sync for OsPatchError
impl Unpin for OsPatchError
impl UnsafeUnpin for OsPatchError
impl UnwindSafe for OsPatchError
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