pub enum DigipinError {
InvalidLatitude,
InvalidLongitude,
OutsideSupportedTerritory,
InvalidDigipinLength,
InvalidDigipinFormat,
}Expand description
Errors returned by DIGIPIN operations.
§Variants
InvalidLatitude: Latitude is outside geodetic bounds.InvalidLongitude: Longitude is outside geodetic bounds.OutsideSupportedTerritory: Location is outside the DIGIPIN supported territory.InvalidDigipinLength: DIGIPIN does not conform to required length.InvalidDigipinFormat: DIGIPIN contains invalid symbols or format.
Variants§
InvalidLatitude
InvalidLongitude
OutsideSupportedTerritory
InvalidDigipinLength
InvalidDigipinFormat
Trait Implementations§
Source§impl Clone for DigipinError
impl Clone for DigipinError
Source§fn clone(&self) -> DigipinError
fn clone(&self) -> DigipinError
Returns a duplicate of the value. Read more
1.0.0 · 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 DigipinError
impl Debug for DigipinError
Source§impl Display for DigipinError
Implements Display trait for DigipinError to provide human-readable error messages.
impl Display for DigipinError
Implements Display trait for DigipinError to provide human-readable error messages.
Source§impl Error for DigipinError
Implements the standard Error trait for DigipinError.
impl Error for DigipinError
Implements the standard Error trait for DigipinError.
§Note
This allows DigipinError to be used as a standard error type in Rust.
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 DigipinError
impl PartialEq for DigipinError
impl StructuralPartialEq for DigipinError
Auto Trait Implementations§
impl Freeze for DigipinError
impl RefUnwindSafe for DigipinError
impl Send for DigipinError
impl Sync for DigipinError
impl Unpin for DigipinError
impl UnwindSafe for DigipinError
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