pub struct DtgError {
pub code: usize,
pub message: String,
}
Expand description
Custom error
101: Invalid timestamp 102: Invalid timezone 103: Failed to get local timezone 104: Failed to get elapsed time
Fields§
§code: usize
§message: String
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DtgError
impl RefUnwindSafe for DtgError
impl Send for DtgError
impl Sync for DtgError
impl Unpin for DtgError
impl UnwindSafe for DtgError
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