pub enum RegistrationFailure {
Retryable {
cause: String,
retry_after: i64,
},
Permanent(String),
}Expand description
A typed registration failure, split by retryability.
Variants§
Retryable
The edge asked us to retry after a delay.
Permanent(String)
The edge will keep rejecting this tunnel; retrying is pointless.
Trait Implementations§
Source§impl Clone for RegistrationFailure
impl Clone for RegistrationFailure
Source§impl Debug for RegistrationFailure
impl Debug for RegistrationFailure
Source§impl Display for RegistrationFailure
impl Display for RegistrationFailure
Source§impl Error for RegistrationFailure
impl Error for RegistrationFailure
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 From<ConnectionError> for RegistrationFailure
impl From<ConnectionError> for RegistrationFailure
Source§fn from(e: ConnectionError) -> Self
fn from(e: ConnectionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RegistrationFailure
impl RefUnwindSafe for RegistrationFailure
impl Send for RegistrationFailure
impl Sync for RegistrationFailure
impl Unpin for RegistrationFailure
impl UnsafeUnpin for RegistrationFailure
impl UnwindSafe for RegistrationFailure
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