pub enum ConnectorError {
Show 16 variants
InvalidArguments(&'static str),
InvalidState(&'static str),
AccountDoesNotExist(HoprKeyIdent),
ChannelDoesNotExist(ChannelId),
InvalidTicket,
ChannelClosed(ChannelId),
TypeConversion(String),
ConnectionTimeout,
BackendError(Error),
CacheError(Arc<Self>),
ClientError(BlokliClientError),
GeneralError(GeneralError),
ChainTypesError(ChainTypesError),
CoreTypesError(CoreTypesError),
IoError(Error),
OtherError(Error),
}Variants§
InvalidArguments(&'static str)
InvalidState(&'static str)
AccountDoesNotExist(HoprKeyIdent)
ChannelDoesNotExist(ChannelId)
InvalidTicket
ChannelClosed(ChannelId)
TypeConversion(String)
ConnectionTimeout
BackendError(Error)
CacheError(Arc<Self>)
ClientError(BlokliClientError)
GeneralError(GeneralError)
ChainTypesError(ChainTypesError)
CoreTypesError(CoreTypesError)
IoError(Error)
OtherError(Error)
Implementations§
Source§impl ConnectorError
impl ConnectorError
Sourcepub fn as_transaction_rejection_error(&self) -> Option<&TrackingErrorKind>
pub fn as_transaction_rejection_error(&self) -> Option<&TrackingErrorKind>
Indicates whether this error was caused by the transaction actually being rejected by the target blockchain and returns the errors.
Trait Implementations§
Source§impl Debug for ConnectorError
impl Debug for ConnectorError
Source§impl Display for ConnectorError
impl Display for ConnectorError
Source§impl Error for ConnectorError
impl Error for ConnectorError
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<Arc<ConnectorError>> for ConnectorError
impl From<Arc<ConnectorError>> for ConnectorError
Source§impl From<BlokliClientError> for ConnectorError
impl From<BlokliClientError> for ConnectorError
Source§impl From<ChainTypesError> for ConnectorError
impl From<ChainTypesError> for ConnectorError
Source§fn from(source: ChainTypesError) -> Self
fn from(source: ChainTypesError) -> Self
Converts to this type from the input type.
Source§impl From<CoreTypesError> for ConnectorError
impl From<CoreTypesError> for ConnectorError
Source§fn from(source: CoreTypesError) -> Self
fn from(source: CoreTypesError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ConnectorError
impl From<Error> for ConnectorError
Source§impl From<GeneralError> for ConnectorError
impl From<GeneralError> for ConnectorError
Source§fn from(source: GeneralError) -> Self
fn from(source: GeneralError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConnectorError
impl !RefUnwindSafe for ConnectorError
impl Send for ConnectorError
impl Sync for ConnectorError
impl Unpin for ConnectorError
impl !UnwindSafe for ConnectorError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.