pub enum ConnectionResponse {
Error(ConnectionError),
Details(ConnectionDetails),
}Expand description
The ConnectionResponse union.
Variants§
Error(ConnectionError)
The edge rejected the registration.
Details(ConnectionDetails)
The registration succeeded.
Implementations§
Source§impl ConnectionResponse
Convenience: ConnectionResponse with should_retry mapped to a typed
result so callers can distinguish retryable failures without parsing
strings.
impl ConnectionResponse
Convenience: ConnectionResponse with should_retry mapped to a typed
result so callers can distinguish retryable failures without parsing
strings.
Sourcepub fn into_result(self) -> Result<ConnectionDetails, RegistrationFailure>
pub fn into_result(self) -> Result<ConnectionDetails, RegistrationFailure>
Converts the response into a typed registration result.
Trait Implementations§
Source§impl Clone for ConnectionResponse
impl Clone for ConnectionResponse
Auto Trait Implementations§
impl Freeze for ConnectionResponse
impl RefUnwindSafe for ConnectionResponse
impl Send for ConnectionResponse
impl Sync for ConnectionResponse
impl Unpin for ConnectionResponse
impl UnsafeUnpin for ConnectionResponse
impl UnwindSafe for ConnectionResponse
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