#[non_exhaustive]pub enum TransferError {
MissingProvider {
source_endpoint: TransferEndpoint,
source_event_domain_id: EventDomainId,
destination_endpoint: TransferEndpoint,
destination_event_domain_id: EventDomainId,
},
ProviderContract {
source: TransferProviderContractError,
},
}Expand description
Typed runtime transfer setup failure.
§Examples
use tenferro_runtime::TransferError;
fn is_missing_provider(error: &TransferError) -> bool {
matches!(error, TransferError::MissingProvider { .. })
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MissingProvider
No provider was registered for the endpoint pair required by two concrete execution locations.
Fields
§
source_endpoint: TransferEndpointSource transfer endpoint.
§
source_event_domain_id: EventDomainIdSource event domain.
§
destination_endpoint: TransferEndpointDestination transfer endpoint.
§
destination_event_domain_id: EventDomainIdDestination event domain.
ProviderContract
A provider returned a tensor that violates the transfer request contract.
Fields
§
source: TransferProviderContractErrorTyped provider-contract violation.
Trait Implementations§
Source§impl Debug for TransferError
impl Debug for TransferError
Source§impl Display for TransferError
impl Display for TransferError
Source§impl Error for TransferError
impl Error for TransferError
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()
Auto Trait Implementations§
impl Freeze for TransferError
impl !RefUnwindSafe for TransferError
impl Send for TransferError
impl Sync for TransferError
impl Unpin for TransferError
impl UnsafeUnpin for TransferError
impl !UnwindSafe for TransferError
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> 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