pub enum IicpError {
Http(Error),
Protocol {
code: String,
message: String,
status: u16,
},
InvalidIntent(String),
TimeoutTooLarge(u64),
NoNodes {
intent: String,
},
Serde(Error),
Node(String),
}Expand description
All errors emitted by the IICP client SDK.
Variants§
Http(Error)
Network or HTTP transport failure.
Protocol
Directory or node returned an IICP error response.
InvalidIntent(String)
SDK-03: intent URN does not match the required pattern.
TimeoutTooLarge(u64)
SDK-04: timeout_ms exceeds the maximum of 120 000 ms.
NoNodes
Discover returned an empty node list.
Serde(Error)
JSON serialization / deserialization failure.
Node(String)
Node registration, heartbeat, or server bind failure.
Implementations§
Trait Implementations§
Source§impl Error for IicpError
impl Error for IicpError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for IicpError
impl !UnwindSafe for IicpError
impl Freeze for IicpError
impl Send for IicpError
impl Sync for IicpError
impl Unpin for IicpError
impl UnsafeUnpin for IicpError
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