pub enum AeronArchiveErrorCode {
Show 18 variants
Generic,
ActiveListing,
ActiveRecording,
ActiveSubscription,
UnknownSubscription,
UnknownRecording,
UnknownReplay,
MaxReplays,
MaxRecordings,
InvalidExtension,
AuthenticationRejected,
StorageSpace,
UnknownReplication,
UnauthorisedAction,
ReplicationConnectionFailure,
EmptyRecording,
InvalidPosition,
Unknown(i32),
}Expand description
Archive control-response error codes (io.aeron.archive.client.ArchiveException).
The C archive client reports control-session errors only as text (with the code
embedded as errorCode=N); AeronArchiveError::parse recovers the typed code.
Variants§
Generic
ActiveListing
ActiveRecording
ActiveSubscription
UnknownSubscription
UnknownRecording
UnknownReplay
MaxReplays
MaxRecordings
InvalidExtension
AuthenticationRejected
StorageSpace
UnknownReplication
ReplicationConnectionFailure
EmptyRecording
InvalidPosition
Unknown(i32)
Implementations§
Source§impl AeronArchiveErrorCode
impl AeronArchiveErrorCode
Sourcepub fn from_code(code: i32) -> Self
pub fn from_code(code: i32) -> Self
Maps the wire error code to its variant. Codes 0–13 come straight from the
bindgen’d ARCHIVE_ERROR_CODE_* constants in the aeron C header, so an Aeron
upgrade that changes them is picked up automatically (and the
archive_error_codes_match_the_c_header test fails if new ones appear).
Codes 14–16 are defined by the Java/C++ ArchiveException but are not yet in
the C header; a Java archive can still send them.
Sourcepub fn is_resource_exhausted(&self) -> bool
pub fn is_resource_exhausted(&self) -> bool
Resource-exhaustion codes — the operation can succeed later once capacity frees up (a replay/recording slot or storage). Everything else is a state/identity error: fix the request, don’t retry it blindly.
Trait Implementations§
Source§impl Clone for AeronArchiveErrorCode
impl Clone for AeronArchiveErrorCode
Source§fn clone(&self) -> AeronArchiveErrorCode
fn clone(&self) -> AeronArchiveErrorCode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more