pub enum RuntimeError {
Show 43 variants
InvalidLimits(&'static str),
BuilderSealed,
HandshakeNotPrepared,
InvalidState {
expected: RuntimeState,
actual: RuntimeState,
},
DuplicateAction(ActionId),
UnknownAction(ActionId),
UnknownDomain(DomainId),
DuplicateObjectType(ObjectTypeId),
UnknownObjectType(ObjectTypeId),
UnknownObject(ObjectId),
ObjectCollected(ObjectId),
StaleObjectLocation(ObjectId),
ObjectAction(String),
InvalidObjectTypeId,
InvalidObjectConcurrency,
PinnedObjectType(ObjectTypeId),
MigrationInProgress(ObjectId),
MigrationConflict(ObjectId),
Migration {
request: RequestId,
message: String,
},
MigrationRolledBack(ObjectId),
MigrationCommittedFailure {
object: ObjectId,
message: String,
},
SnapshotTooLarge {
bytes: usize,
limit: usize,
},
Moved {
object: ObjectId,
location: ObjectLocation,
},
RedirectLimit(ObjectId),
InvalidActionId,
InvalidSchema,
InvalidDeadline,
InvalidMembership(LocalityId),
ResourceExhausted {
resource: ResourceKind,
limit: usize,
},
DeadlineExceeded {
request: RequestId,
deadline: Duration,
},
Cancelled(RequestId),
RemoteAction {
request: RequestId,
message: String,
},
RemoteObject {
request: RequestId,
message: String,
},
Placement {
request: RequestId,
message: String,
},
Lease {
request: RequestId,
message: String,
},
LeaseTransferExpired(ObjectId),
DuplicateResultUnavailable(RequestId),
Protocol(String),
Transport(TransportError),
PeerFailed(LocalityId),
Shutdown,
ShutdownTimeout,
RetainedResources,
}Variants§
InvalidLimits(&'static str)
BuilderSealed
HandshakeNotPrepared
InvalidState
DuplicateAction(ActionId)
UnknownAction(ActionId)
UnknownDomain(DomainId)
DuplicateObjectType(ObjectTypeId)
UnknownObjectType(ObjectTypeId)
UnknownObject(ObjectId)
ObjectCollected(ObjectId)
StaleObjectLocation(ObjectId)
ObjectAction(String)
InvalidObjectTypeId
InvalidObjectConcurrency
PinnedObjectType(ObjectTypeId)
MigrationInProgress(ObjectId)
MigrationConflict(ObjectId)
Migration
MigrationRolledBack(ObjectId)
MigrationCommittedFailure
SnapshotTooLarge
Moved
RedirectLimit(ObjectId)
InvalidActionId
InvalidSchema
InvalidDeadline
InvalidMembership(LocalityId)
ResourceExhausted
DeadlineExceeded
Cancelled(RequestId)
RemoteAction
RemoteObject
Placement
Lease
LeaseTransferExpired(ObjectId)
Protocol(String)
Transport(TransportError)
PeerFailed(LocalityId)
Shutdown
ShutdownTimeout
RetainedResources
Trait Implementations§
Source§impl Clone for RuntimeError
impl Clone for RuntimeError
Source§fn clone(&self) -> RuntimeError
fn clone(&self) -> RuntimeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeError
impl Debug for RuntimeError
Source§impl Display for RuntimeError
impl Display for RuntimeError
impl Eq for RuntimeError
Source§impl Error for RuntimeError
impl Error for RuntimeError
1.30.0 · 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<TransportError> for RuntimeError
impl From<TransportError> for RuntimeError
Source§impl PartialEq for RuntimeError
impl PartialEq for RuntimeError
Source§fn eq(&self, other: &RuntimeError) -> bool
fn eq(&self, other: &RuntimeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RuntimeError
Auto Trait Implementations§
impl Freeze for RuntimeError
impl RefUnwindSafe for RuntimeError
impl Send for RuntimeError
impl Sync for RuntimeError
impl Unpin for RuntimeError
impl UnsafeUnpin for RuntimeError
impl UnwindSafe for RuntimeError
Blanket Implementations§
§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
§impl<T> ConvUtil for T
impl<T> ConvUtil for T
§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
Approximate the subject to a given type with the default scheme.
§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
Approximate the subject to a given type with a specific scheme.
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<Src> TryFrom<Src> for Src
impl<Src> TryFrom<Src> for Src
§impl<Src, Dst> TryInto<Dst> for Srcwhere
Dst: TryFrom<Src>,
impl<Src, Dst> TryInto<Dst> for Srcwhere
Dst: TryFrom<Src>,
§impl<Src> ValueFrom<Src> for Src
impl<Src> ValueFrom<Src> for Src
§fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
Convert the given value into an exactly equivalent representation.