pub enum ErrorOrUserError {
Error(Error),
UserError(UserError),
}
Variants§
Implementations§
Source§impl ErrorOrUserError
impl ErrorOrUserError
pub fn unwrap_error(self) -> Error
Trait Implementations§
Source§impl Clone for ErrorOrUserError
impl Clone for ErrorOrUserError
Source§fn clone(&self) -> ErrorOrUserError
fn clone(&self) -> ErrorOrUserError
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ErrorOrUserError
impl Debug for ErrorOrUserError
Source§impl From<Error> for ErrorOrUserError
impl From<Error> for ErrorOrUserError
Source§impl From<IOError> for ErrorOrUserError
impl From<IOError> for ErrorOrUserError
Source§impl From<PeerMisbehaviorError> for ErrorOrUserError
impl From<PeerMisbehaviorError> for ErrorOrUserError
Source§fn from(err: PeerMisbehaviorError) -> Self
fn from(err: PeerMisbehaviorError) -> Self
Converts to this type from the input type.
Source§impl From<PeerMisbehaviorError> for ErrorOrUserError
impl From<PeerMisbehaviorError> for ErrorOrUserError
Source§fn from(err: SharedRingBuffersPeerMisbehaviorError) -> Self
fn from(err: SharedRingBuffersPeerMisbehaviorError) -> Self
Converts to this type from the input type.
Source§impl From<SlotTrackerError> for ErrorOrUserError
impl From<SlotTrackerError> for ErrorOrUserError
Source§fn from(err: SlotTrackerError) -> Self
fn from(err: SlotTrackerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ErrorOrUserError
impl RefUnwindSafe for ErrorOrUserError
impl Send for ErrorOrUserError
impl Sync for ErrorOrUserError
impl Unpin for ErrorOrUserError
impl UnwindSafe for ErrorOrUserError
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)