Enum aws_sdk_networkfirewall::Error
source · #[non_exhaustive]pub enum Error {
Show 13 variants
InsufficientCapacityException(InsufficientCapacityException),
InternalServerError(InternalServerError),
InvalidOperationException(InvalidOperationException),
InvalidRequestException(InvalidRequestException),
InvalidResourcePolicyException(InvalidResourcePolicyException),
InvalidTokenException(InvalidTokenException),
LimitExceededException(LimitExceededException),
LogDestinationPermissionException(LogDestinationPermissionException),
ResourceNotFoundException(ResourceNotFoundException),
ResourceOwnerCheckException(ResourceOwnerCheckException),
ThrottlingException(ThrottlingException),
UnsupportedOperationException(UnsupportedOperationException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InsufficientCapacityException(InsufficientCapacityException)
Amazon Web Services doesn't currently have enough available capacity to fulfill your request. Try your request later.
InternalServerError(InternalServerError)
Your request is valid, but Network Firewall couldn't perform the operation because of a system problem. Retry your request.
InvalidOperationException(InvalidOperationException)
The operation failed because it's not valid. For example, you might have tried to delete a rule group or firewall policy that's in use.
InvalidRequestException(InvalidRequestException)
The operation failed because of a problem with your request. Examples include:
-
You specified an unsupported parameter name or value.
-
You tried to update a property with a value that isn't among the available types.
-
Your request references an ARN that is malformed, or corresponds to a resource that isn't valid in the context of the request.
InvalidResourcePolicyException(InvalidResourcePolicyException)
The policy statement failed validation.
InvalidTokenException(InvalidTokenException)
The token you provided is stale or isn't valid for the operation.
LimitExceededException(LimitExceededException)
Unable to perform the operation because doing so would violate a limit setting.
LogDestinationPermissionException(LogDestinationPermissionException)
Unable to send logs to a configured logging destination.
ResourceNotFoundException(ResourceNotFoundException)
Unable to locate a resource using the parameters that you provided.
ResourceOwnerCheckException(ResourceOwnerCheckException)
Unable to change the resource because your account doesn't own it.
ThrottlingException(ThrottlingException)
Unable to process the request due to throttling limitations.
UnsupportedOperationException(UnsupportedOperationException)
The operation you requested isn't supported by Network Firewall.
Unhandled(Unhandled)
Unhandled
directly is not forwards compatible. Instead, match using a variable wildcard pattern and check .code()
:
err if err.code() == Some("SpecificExceptionCode") => { /* handle the error */ }
See ProvideErrorMetadata
for what information is available for the error.An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<AssociateFirewallPolicyError> for Error
impl From<AssociateFirewallPolicyError> for Error
source§fn from(err: AssociateFirewallPolicyError) -> Self
fn from(err: AssociateFirewallPolicyError) -> Self
source§impl From<AssociateSubnetsError> for Error
impl From<AssociateSubnetsError> for Error
source§fn from(err: AssociateSubnetsError) -> Self
fn from(err: AssociateSubnetsError) -> Self
source§impl From<BuildError> for Error
impl From<BuildError> for Error
source§fn from(value: BuildError) -> Self
fn from(value: BuildError) -> Self
source§impl From<CreateFirewallError> for Error
impl From<CreateFirewallError> for Error
source§fn from(err: CreateFirewallError) -> Self
fn from(err: CreateFirewallError) -> Self
source§impl From<CreateFirewallPolicyError> for Error
impl From<CreateFirewallPolicyError> for Error
source§fn from(err: CreateFirewallPolicyError) -> Self
fn from(err: CreateFirewallPolicyError) -> Self
source§impl From<CreateRuleGroupError> for Error
impl From<CreateRuleGroupError> for Error
source§fn from(err: CreateRuleGroupError) -> Self
fn from(err: CreateRuleGroupError) -> Self
source§impl From<CreateTLSInspectionConfigurationError> for Error
impl From<CreateTLSInspectionConfigurationError> for Error
source§fn from(err: CreateTLSInspectionConfigurationError) -> Self
fn from(err: CreateTLSInspectionConfigurationError) -> Self
source§impl From<DeleteFirewallError> for Error
impl From<DeleteFirewallError> for Error
source§fn from(err: DeleteFirewallError) -> Self
fn from(err: DeleteFirewallError) -> Self
source§impl From<DeleteFirewallPolicyError> for Error
impl From<DeleteFirewallPolicyError> for Error
source§fn from(err: DeleteFirewallPolicyError) -> Self
fn from(err: DeleteFirewallPolicyError) -> Self
source§impl From<DeleteResourcePolicyError> for Error
impl From<DeleteResourcePolicyError> for Error
source§fn from(err: DeleteResourcePolicyError) -> Self
fn from(err: DeleteResourcePolicyError) -> Self
source§impl From<DeleteRuleGroupError> for Error
impl From<DeleteRuleGroupError> for Error
source§fn from(err: DeleteRuleGroupError) -> Self
fn from(err: DeleteRuleGroupError) -> Self
source§impl From<DeleteTLSInspectionConfigurationError> for Error
impl From<DeleteTLSInspectionConfigurationError> for Error
source§fn from(err: DeleteTLSInspectionConfigurationError) -> Self
fn from(err: DeleteTLSInspectionConfigurationError) -> Self
source§impl From<DescribeFirewallError> for Error
impl From<DescribeFirewallError> for Error
source§fn from(err: DescribeFirewallError) -> Self
fn from(err: DescribeFirewallError) -> Self
source§impl From<DescribeFirewallPolicyError> for Error
impl From<DescribeFirewallPolicyError> for Error
source§fn from(err: DescribeFirewallPolicyError) -> Self
fn from(err: DescribeFirewallPolicyError) -> Self
source§impl From<DescribeLoggingConfigurationError> for Error
impl From<DescribeLoggingConfigurationError> for Error
source§fn from(err: DescribeLoggingConfigurationError) -> Self
fn from(err: DescribeLoggingConfigurationError) -> Self
source§impl From<DescribeResourcePolicyError> for Error
impl From<DescribeResourcePolicyError> for Error
source§fn from(err: DescribeResourcePolicyError) -> Self
fn from(err: DescribeResourcePolicyError) -> Self
source§impl From<DescribeRuleGroupError> for Error
impl From<DescribeRuleGroupError> for Error
source§fn from(err: DescribeRuleGroupError) -> Self
fn from(err: DescribeRuleGroupError) -> Self
source§impl From<DescribeRuleGroupMetadataError> for Error
impl From<DescribeRuleGroupMetadataError> for Error
source§fn from(err: DescribeRuleGroupMetadataError) -> Self
fn from(err: DescribeRuleGroupMetadataError) -> Self
source§impl From<DescribeTLSInspectionConfigurationError> for Error
impl From<DescribeTLSInspectionConfigurationError> for Error
source§fn from(err: DescribeTLSInspectionConfigurationError) -> Self
fn from(err: DescribeTLSInspectionConfigurationError) -> Self
source§impl From<DisassociateSubnetsError> for Error
impl From<DisassociateSubnetsError> for Error
source§fn from(err: DisassociateSubnetsError) -> Self
fn from(err: DisassociateSubnetsError) -> Self
source§impl From<ListFirewallPoliciesError> for Error
impl From<ListFirewallPoliciesError> for Error
source§fn from(err: ListFirewallPoliciesError) -> Self
fn from(err: ListFirewallPoliciesError) -> Self
source§impl From<ListFirewallsError> for Error
impl From<ListFirewallsError> for Error
source§fn from(err: ListFirewallsError) -> Self
fn from(err: ListFirewallsError) -> Self
source§impl From<ListRuleGroupsError> for Error
impl From<ListRuleGroupsError> for Error
source§fn from(err: ListRuleGroupsError) -> Self
fn from(err: ListRuleGroupsError) -> Self
source§impl From<ListTLSInspectionConfigurationsError> for Error
impl From<ListTLSInspectionConfigurationsError> for Error
source§fn from(err: ListTLSInspectionConfigurationsError) -> Self
fn from(err: ListTLSInspectionConfigurationsError) -> Self
source§impl From<ListTagsForResourceError> for Error
impl From<ListTagsForResourceError> for Error
source§fn from(err: ListTagsForResourceError) -> Self
fn from(err: ListTagsForResourceError) -> Self
source§impl From<PutResourcePolicyError> for Error
impl From<PutResourcePolicyError> for Error
source§fn from(err: PutResourcePolicyError) -> Self
fn from(err: PutResourcePolicyError) -> Self
source§impl<R> From<SdkError<AssociateFirewallPolicyError, R>> for Error
impl<R> From<SdkError<AssociateFirewallPolicyError, R>> for Error
source§fn from(err: SdkError<AssociateFirewallPolicyError, R>) -> Self
fn from(err: SdkError<AssociateFirewallPolicyError, R>) -> Self
source§impl<R> From<SdkError<AssociateSubnetsError, R>> for Error
impl<R> From<SdkError<AssociateSubnetsError, R>> for Error
source§fn from(err: SdkError<AssociateSubnetsError, R>) -> Self
fn from(err: SdkError<AssociateSubnetsError, R>) -> Self
source§impl<R> From<SdkError<CreateFirewallError, R>> for Error
impl<R> From<SdkError<CreateFirewallError, R>> for Error
source§fn from(err: SdkError<CreateFirewallError, R>) -> Self
fn from(err: SdkError<CreateFirewallError, R>) -> Self
source§impl<R> From<SdkError<CreateFirewallPolicyError, R>> for Error
impl<R> From<SdkError<CreateFirewallPolicyError, R>> for Error
source§fn from(err: SdkError<CreateFirewallPolicyError, R>) -> Self
fn from(err: SdkError<CreateFirewallPolicyError, R>) -> Self
source§impl<R> From<SdkError<CreateRuleGroupError, R>> for Error
impl<R> From<SdkError<CreateRuleGroupError, R>> for Error
source§fn from(err: SdkError<CreateRuleGroupError, R>) -> Self
fn from(err: SdkError<CreateRuleGroupError, R>) -> Self
source§impl<R> From<SdkError<CreateTLSInspectionConfigurationError, R>> for Error
impl<R> From<SdkError<CreateTLSInspectionConfigurationError, R>> for Error
source§fn from(err: SdkError<CreateTLSInspectionConfigurationError, R>) -> Self
fn from(err: SdkError<CreateTLSInspectionConfigurationError, R>) -> Self
source§impl<R> From<SdkError<DeleteFirewallError, R>> for Error
impl<R> From<SdkError<DeleteFirewallError, R>> for Error
source§fn from(err: SdkError<DeleteFirewallError, R>) -> Self
fn from(err: SdkError<DeleteFirewallError, R>) -> Self
source§impl<R> From<SdkError<DeleteFirewallPolicyError, R>> for Error
impl<R> From<SdkError<DeleteFirewallPolicyError, R>> for Error
source§fn from(err: SdkError<DeleteFirewallPolicyError, R>) -> Self
fn from(err: SdkError<DeleteFirewallPolicyError, R>) -> Self
source§impl<R> From<SdkError<DeleteResourcePolicyError, R>> for Error
impl<R> From<SdkError<DeleteResourcePolicyError, R>> for Error
source§fn from(err: SdkError<DeleteResourcePolicyError, R>) -> Self
fn from(err: SdkError<DeleteResourcePolicyError, R>) -> Self
source§impl<R> From<SdkError<DeleteRuleGroupError, R>> for Error
impl<R> From<SdkError<DeleteRuleGroupError, R>> for Error
source§fn from(err: SdkError<DeleteRuleGroupError, R>) -> Self
fn from(err: SdkError<DeleteRuleGroupError, R>) -> Self
source§impl<R> From<SdkError<DeleteTLSInspectionConfigurationError, R>> for Error
impl<R> From<SdkError<DeleteTLSInspectionConfigurationError, R>> for Error
source§fn from(err: SdkError<DeleteTLSInspectionConfigurationError, R>) -> Self
fn from(err: SdkError<DeleteTLSInspectionConfigurationError, R>) -> Self
source§impl<R> From<SdkError<DescribeFirewallError, R>> for Error
impl<R> From<SdkError<DescribeFirewallError, R>> for Error
source§fn from(err: SdkError<DescribeFirewallError, R>) -> Self
fn from(err: SdkError<DescribeFirewallError, R>) -> Self
source§impl<R> From<SdkError<DescribeFirewallPolicyError, R>> for Error
impl<R> From<SdkError<DescribeFirewallPolicyError, R>> for Error
source§fn from(err: SdkError<DescribeFirewallPolicyError, R>) -> Self
fn from(err: SdkError<DescribeFirewallPolicyError, R>) -> Self
source§impl<R> From<SdkError<DescribeLoggingConfigurationError, R>> for Error
impl<R> From<SdkError<DescribeLoggingConfigurationError, R>> for Error
source§fn from(err: SdkError<DescribeLoggingConfigurationError, R>) -> Self
fn from(err: SdkError<DescribeLoggingConfigurationError, R>) -> Self
source§impl<R> From<SdkError<DescribeResourcePolicyError, R>> for Error
impl<R> From<SdkError<DescribeResourcePolicyError, R>> for Error
source§fn from(err: SdkError<DescribeResourcePolicyError, R>) -> Self
fn from(err: SdkError<DescribeResourcePolicyError, R>) -> Self
source§impl<R> From<SdkError<DescribeRuleGroupError, R>> for Error
impl<R> From<SdkError<DescribeRuleGroupError, R>> for Error
source§fn from(err: SdkError<DescribeRuleGroupError, R>) -> Self
fn from(err: SdkError<DescribeRuleGroupError, R>) -> Self
source§impl<R> From<SdkError<DescribeRuleGroupMetadataError, R>> for Error
impl<R> From<SdkError<DescribeRuleGroupMetadataError, R>> for Error
source§fn from(err: SdkError<DescribeRuleGroupMetadataError, R>) -> Self
fn from(err: SdkError<DescribeRuleGroupMetadataError, R>) -> Self
source§impl<R> From<SdkError<DescribeTLSInspectionConfigurationError, R>> for Error
impl<R> From<SdkError<DescribeTLSInspectionConfigurationError, R>> for Error
source§fn from(err: SdkError<DescribeTLSInspectionConfigurationError, R>) -> Self
fn from(err: SdkError<DescribeTLSInspectionConfigurationError, R>) -> Self
source§impl<R> From<SdkError<DisassociateSubnetsError, R>> for Error
impl<R> From<SdkError<DisassociateSubnetsError, R>> for Error
source§fn from(err: SdkError<DisassociateSubnetsError, R>) -> Self
fn from(err: SdkError<DisassociateSubnetsError, R>) -> Self
source§impl<R> From<SdkError<ListFirewallPoliciesError, R>> for Error
impl<R> From<SdkError<ListFirewallPoliciesError, R>> for Error
source§fn from(err: SdkError<ListFirewallPoliciesError, R>) -> Self
fn from(err: SdkError<ListFirewallPoliciesError, R>) -> Self
source§impl<R> From<SdkError<ListFirewallsError, R>> for Error
impl<R> From<SdkError<ListFirewallsError, R>> for Error
source§fn from(err: SdkError<ListFirewallsError, R>) -> Self
fn from(err: SdkError<ListFirewallsError, R>) -> Self
source§impl<R> From<SdkError<ListRuleGroupsError, R>> for Error
impl<R> From<SdkError<ListRuleGroupsError, R>> for Error
source§fn from(err: SdkError<ListRuleGroupsError, R>) -> Self
fn from(err: SdkError<ListRuleGroupsError, R>) -> Self
source§impl<R> From<SdkError<ListTLSInspectionConfigurationsError, R>> for Error
impl<R> From<SdkError<ListTLSInspectionConfigurationsError, R>> for Error
source§fn from(err: SdkError<ListTLSInspectionConfigurationsError, R>) -> Self
fn from(err: SdkError<ListTLSInspectionConfigurationsError, R>) -> Self
source§impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
source§fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
source§impl<R> From<SdkError<PutResourcePolicyError, R>> for Error
impl<R> From<SdkError<PutResourcePolicyError, R>> for Error
source§fn from(err: SdkError<PutResourcePolicyError, R>) -> Self
fn from(err: SdkError<PutResourcePolicyError, R>) -> Self
source§impl<R> From<SdkError<TagResourceError, R>> for Error
impl<R> From<SdkError<TagResourceError, R>> for Error
source§fn from(err: SdkError<TagResourceError, R>) -> Self
fn from(err: SdkError<TagResourceError, R>) -> Self
source§impl<R> From<SdkError<UntagResourceError, R>> for Error
impl<R> From<SdkError<UntagResourceError, R>> for Error
source§fn from(err: SdkError<UntagResourceError, R>) -> Self
fn from(err: SdkError<UntagResourceError, R>) -> Self
source§impl<R> From<SdkError<UpdateFirewallDeleteProtectionError, R>> for Error
impl<R> From<SdkError<UpdateFirewallDeleteProtectionError, R>> for Error
source§fn from(err: SdkError<UpdateFirewallDeleteProtectionError, R>) -> Self
fn from(err: SdkError<UpdateFirewallDeleteProtectionError, R>) -> Self
source§impl<R> From<SdkError<UpdateFirewallDescriptionError, R>> for Error
impl<R> From<SdkError<UpdateFirewallDescriptionError, R>> for Error
source§fn from(err: SdkError<UpdateFirewallDescriptionError, R>) -> Self
fn from(err: SdkError<UpdateFirewallDescriptionError, R>) -> Self
source§impl<R> From<SdkError<UpdateFirewallEncryptionConfigurationError, R>> for Error
impl<R> From<SdkError<UpdateFirewallEncryptionConfigurationError, R>> for Error
source§fn from(err: SdkError<UpdateFirewallEncryptionConfigurationError, R>) -> Self
fn from(err: SdkError<UpdateFirewallEncryptionConfigurationError, R>) -> Self
source§impl<R> From<SdkError<UpdateFirewallPolicyChangeProtectionError, R>> for Error
impl<R> From<SdkError<UpdateFirewallPolicyChangeProtectionError, R>> for Error
source§fn from(err: SdkError<UpdateFirewallPolicyChangeProtectionError, R>) -> Self
fn from(err: SdkError<UpdateFirewallPolicyChangeProtectionError, R>) -> Self
source§impl<R> From<SdkError<UpdateFirewallPolicyError, R>> for Error
impl<R> From<SdkError<UpdateFirewallPolicyError, R>> for Error
source§fn from(err: SdkError<UpdateFirewallPolicyError, R>) -> Self
fn from(err: SdkError<UpdateFirewallPolicyError, R>) -> Self
source§impl<R> From<SdkError<UpdateLoggingConfigurationError, R>> for Error
impl<R> From<SdkError<UpdateLoggingConfigurationError, R>> for Error
source§fn from(err: SdkError<UpdateLoggingConfigurationError, R>) -> Self
fn from(err: SdkError<UpdateLoggingConfigurationError, R>) -> Self
source§impl<R> From<SdkError<UpdateRuleGroupError, R>> for Error
impl<R> From<SdkError<UpdateRuleGroupError, R>> for Error
source§fn from(err: SdkError<UpdateRuleGroupError, R>) -> Self
fn from(err: SdkError<UpdateRuleGroupError, R>) -> Self
source§impl<R> From<SdkError<UpdateSubnetChangeProtectionError, R>> for Error
impl<R> From<SdkError<UpdateSubnetChangeProtectionError, R>> for Error
source§fn from(err: SdkError<UpdateSubnetChangeProtectionError, R>) -> Self
fn from(err: SdkError<UpdateSubnetChangeProtectionError, R>) -> Self
source§impl<R> From<SdkError<UpdateTLSInspectionConfigurationError, R>> for Error
impl<R> From<SdkError<UpdateTLSInspectionConfigurationError, R>> for Error
source§fn from(err: SdkError<UpdateTLSInspectionConfigurationError, R>) -> Self
fn from(err: SdkError<UpdateTLSInspectionConfigurationError, R>) -> Self
source§impl From<TagResourceError> for Error
impl From<TagResourceError> for Error
source§fn from(err: TagResourceError) -> Self
fn from(err: TagResourceError) -> Self
source§impl From<UntagResourceError> for Error
impl From<UntagResourceError> for Error
source§fn from(err: UntagResourceError) -> Self
fn from(err: UntagResourceError) -> Self
source§impl From<UpdateFirewallDeleteProtectionError> for Error
impl From<UpdateFirewallDeleteProtectionError> for Error
source§fn from(err: UpdateFirewallDeleteProtectionError) -> Self
fn from(err: UpdateFirewallDeleteProtectionError) -> Self
source§impl From<UpdateFirewallDescriptionError> for Error
impl From<UpdateFirewallDescriptionError> for Error
source§fn from(err: UpdateFirewallDescriptionError) -> Self
fn from(err: UpdateFirewallDescriptionError) -> Self
source§impl From<UpdateFirewallEncryptionConfigurationError> for Error
impl From<UpdateFirewallEncryptionConfigurationError> for Error
source§fn from(err: UpdateFirewallEncryptionConfigurationError) -> Self
fn from(err: UpdateFirewallEncryptionConfigurationError) -> Self
source§impl From<UpdateFirewallPolicyChangeProtectionError> for Error
impl From<UpdateFirewallPolicyChangeProtectionError> for Error
source§fn from(err: UpdateFirewallPolicyChangeProtectionError) -> Self
fn from(err: UpdateFirewallPolicyChangeProtectionError) -> Self
source§impl From<UpdateFirewallPolicyError> for Error
impl From<UpdateFirewallPolicyError> for Error
source§fn from(err: UpdateFirewallPolicyError) -> Self
fn from(err: UpdateFirewallPolicyError) -> Self
source§impl From<UpdateLoggingConfigurationError> for Error
impl From<UpdateLoggingConfigurationError> for Error
source§fn from(err: UpdateLoggingConfigurationError) -> Self
fn from(err: UpdateLoggingConfigurationError) -> Self
source§impl From<UpdateRuleGroupError> for Error
impl From<UpdateRuleGroupError> for Error
source§fn from(err: UpdateRuleGroupError) -> Self
fn from(err: UpdateRuleGroupError) -> Self
source§impl From<UpdateSubnetChangeProtectionError> for Error
impl From<UpdateSubnetChangeProtectionError> for Error
source§fn from(err: UpdateSubnetChangeProtectionError) -> Self
fn from(err: UpdateSubnetChangeProtectionError) -> Self
source§impl From<UpdateTLSInspectionConfigurationError> for Error
impl From<UpdateTLSInspectionConfigurationError> for Error
source§fn from(err: UpdateTLSInspectionConfigurationError) -> Self
fn from(err: UpdateTLSInspectionConfigurationError) -> Self
source§impl ProvideErrorMetadata for Error
impl ProvideErrorMetadata for Error
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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>
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>
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