pub enum HubError {
UnknownReceiver {
target: Url,
},
Timeout {
target: Url,
elapsed: Duration,
},
Connection {
target: Url,
},
}Expand description
§5.4. 4xxx: Hub errors
When a server encounters an error, client side error (2xxx) or server side error (3xxx), it sends the status code to the Hub. The Hub SHALL then forward this error to the client which sent the request (when the request was not a Broadcast Push). For errors that a Hub encounters while routing messages, the following OCPI status codes shall be used.
Variants§
UnknownReceiver
§4001
Unknown receiver (TO address is unknown)
Timeout
§4002
Timeout on forwarded request (message is forwarded, but request times out)
Connection
§4003
Connection problem (receiving party is not connected)
Trait Implementations§
Source§impl Error for HubError
impl Error for HubError
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()
impl Eq for HubError
impl StructuralPartialEq for HubError
Auto Trait Implementations§
impl Freeze for HubError
impl RefUnwindSafe for HubError
impl Send for HubError
impl Sync for HubError
impl Unpin for HubError
impl UnwindSafe for HubError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.