pub enum LockClientError {
InconsistentData {
description: String,
},
LockTableCreateFailure {
name: String,
source: Box<CreateTableError>,
},
VersionAlreadyExists {
table_path: String,
version: i64,
},
ProvisionedThroughputExceeded,
LockTableNotFound,
GenericDynamoDb {
source: Box<dyn Error + Send + Sync + 'static>,
},
Credentials {
source: CredentialsError,
},
LockClientRequired,
VersionAlreadyCompleted {
table_path: String,
version: i64,
},
}
Expand description
Errors produced by DynamoDbLockClient
Variants§
InconsistentData
LockTableCreateFailure
VersionAlreadyExists
ProvisionedThroughputExceeded
LockTableNotFound
GenericDynamoDb
Credentials
Fields
§
source: CredentialsError
LockClientRequired
VersionAlreadyCompleted
Trait Implementations§
Source§impl Debug for LockClientError
impl Debug for LockClientError
Source§impl Display for LockClientError
impl Display for LockClientError
Source§impl Error for LockClientError
impl Error for LockClientError
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<DeleteItemError> for LockClientError
impl From<DeleteItemError> for LockClientError
Source§fn from(err: DeleteItemError) -> Self
fn from(err: DeleteItemError) -> Self
Converts to this type from the input type.
Source§impl From<GetItemError> for LockClientError
impl From<GetItemError> for LockClientError
Source§fn from(err: GetItemError) -> Self
fn from(err: GetItemError) -> Self
Converts to this type from the input type.
Source§impl From<PutItemError> for LockClientError
impl From<PutItemError> for LockClientError
Source§fn from(err: PutItemError) -> Self
fn from(err: PutItemError) -> Self
Converts to this type from the input type.
Source§impl From<QueryError> for LockClientError
impl From<QueryError> for LockClientError
Source§fn from(err: QueryError) -> Self
fn from(err: QueryError) -> Self
Converts to this type from the input type.
Source§impl<R> From<SdkError<DeleteItemError, R>> for LockClientError
impl<R> From<SdkError<DeleteItemError, R>> for LockClientError
Source§fn from(err: SdkError<DeleteItemError, R>) -> Self
fn from(err: SdkError<DeleteItemError, R>) -> Self
Converts to this type from the input type.
Source§impl<R> From<SdkError<GetItemError, R>> for LockClientError
impl<R> From<SdkError<GetItemError, R>> for LockClientError
Source§fn from(err: SdkError<GetItemError, R>) -> Self
fn from(err: SdkError<GetItemError, R>) -> Self
Converts to this type from the input type.
Source§impl<R> From<SdkError<PutItemError, R>> for LockClientError
impl<R> From<SdkError<PutItemError, R>> for LockClientError
Source§fn from(err: SdkError<PutItemError, R>) -> Self
fn from(err: SdkError<PutItemError, R>) -> Self
Converts to this type from the input type.
Source§impl<R> From<SdkError<QueryError, R>> for LockClientError
impl<R> From<SdkError<QueryError, R>> for LockClientError
Source§fn from(err: SdkError<QueryError, R>) -> Self
fn from(err: SdkError<QueryError, R>) -> Self
Converts to this type from the input type.
Source§impl<R> From<SdkError<UpdateItemError, R>> for LockClientError
impl<R> From<SdkError<UpdateItemError, R>> for LockClientError
Source§fn from(err: SdkError<UpdateItemError, R>) -> Self
fn from(err: SdkError<UpdateItemError, R>) -> Self
Converts to this type from the input type.
Source§impl<R> From<ServiceError<DeleteItemError, R>> for LockClientError
impl<R> From<ServiceError<DeleteItemError, R>> for LockClientError
Source§fn from(value: ServiceError<DeleteItemError, R>) -> Self
fn from(value: ServiceError<DeleteItemError, R>) -> Self
Converts to this type from the input type.
Source§impl<R> From<ServiceError<GetItemError, R>> for LockClientError
impl<R> From<ServiceError<GetItemError, R>> for LockClientError
Source§fn from(value: ServiceError<GetItemError, R>) -> Self
fn from(value: ServiceError<GetItemError, R>) -> Self
Converts to this type from the input type.
Source§impl<R> From<ServiceError<PutItemError, R>> for LockClientError
impl<R> From<ServiceError<PutItemError, R>> for LockClientError
Source§fn from(value: ServiceError<PutItemError, R>) -> Self
fn from(value: ServiceError<PutItemError, R>) -> Self
Converts to this type from the input type.
Source§impl<R> From<ServiceError<QueryError, R>> for LockClientError
impl<R> From<ServiceError<QueryError, R>> for LockClientError
Source§fn from(value: ServiceError<QueryError, R>) -> Self
fn from(value: ServiceError<QueryError, R>) -> Self
Converts to this type from the input type.
Source§impl<R> From<ServiceError<UpdateItemError, R>> for LockClientError
impl<R> From<ServiceError<UpdateItemError, R>> for LockClientError
Source§fn from(value: ServiceError<UpdateItemError, R>) -> Self
fn from(value: ServiceError<UpdateItemError, R>) -> Self
Converts to this type from the input type.
Source§impl From<UpdateItemError> for LockClientError
impl From<UpdateItemError> for LockClientError
Source§fn from(err: UpdateItemError) -> Self
fn from(err: UpdateItemError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LockClientError
impl !RefUnwindSafe for LockClientError
impl Send for LockClientError
impl Sync for LockClientError
impl Unpin for LockClientError
impl !UnwindSafe for LockClientError
Blanket Implementations§
Source§impl<T> AsAny for T
impl<T> AsAny for T
Source§fn any_ref(&self) -> &(dyn Any + Send + Sync + 'static)
fn any_ref(&self) -> &(dyn Any + Send + Sync + 'static)
Obtains a
dyn Any
reference to the object: Read moreSource§fn as_any(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
fn as_any(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
Obtains an
Arc<dyn Any>
reference to the object: Read moreSource§fn into_any(self: Box<T>) -> Box<dyn Any + Send + Sync>
fn into_any(self: Box<T>) -> Box<dyn Any + Send + Sync>
Converts the object to
Box<dyn Any>
: Read moreSource§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
Convenient wrapper for
std::any::type_name
, since Any
does not provide it and
Any::type_id
is useless as a debugging aid (its Debug
is just a mess of hex digits).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> 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>
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 moreCreates a shared type from an unshared type.
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.
Source§impl<KernelType, ArrowType> TryIntoArrow<ArrowType> for KernelTypewhere
ArrowType: TryFromKernel<KernelType>,
impl<KernelType, ArrowType> TryIntoArrow<ArrowType> for KernelTypewhere
ArrowType: TryFromKernel<KernelType>,
fn try_into_arrow(self) -> Result<ArrowType, ArrowError>
Source§impl<KernelType, ArrowType> TryIntoKernel<KernelType> for ArrowTypewhere
KernelType: TryFromArrow<ArrowType>,
impl<KernelType, ArrowType> TryIntoKernel<KernelType> for ArrowTypewhere
KernelType: TryFromArrow<ArrowType>,
fn try_into_kernel(self) -> Result<KernelType, ArrowError>
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP