pub enum KwtSmsError {
Network(String),
Api {
code: String,
description: String,
action: String,
},
InvalidInput(String),
}Expand description
Custom error type for the kwtsms crate.
Variants§
Network(String)
Network or HTTP-level error.
Api
API returned an error response with code, description, and action guidance.
InvalidInput(String)
Invalid input provided by the caller.
Trait Implementations§
Source§impl Clone for KwtSmsError
impl Clone for KwtSmsError
Source§fn clone(&self) -> KwtSmsError
fn clone(&self) -> KwtSmsError
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 KwtSmsError
impl Debug for KwtSmsError
Source§impl Display for KwtSmsError
impl Display for KwtSmsError
Source§impl Error for KwtSmsError
impl Error for KwtSmsError
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 KwtSmsError
impl PartialEq for KwtSmsError
impl StructuralPartialEq for KwtSmsError
Auto Trait Implementations§
impl Freeze for KwtSmsError
impl RefUnwindSafe for KwtSmsError
impl Send for KwtSmsError
impl Sync for KwtSmsError
impl Unpin for KwtSmsError
impl UnsafeUnpin for KwtSmsError
impl UnwindSafe for KwtSmsError
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