#[repr(u32)]pub enum IggyError {
Show 219 variants
Error = 1,
InvalidConfiguration = 2,
InvalidCommand = 3,
InvalidFormat = 4,
FeatureUnavailable = 5,
InvalidIdentifier = 6,
InvalidVersion(String),
Disconnected = 8,
CannotEstablishConnection = 9,
CannotCreateBaseDirectory(String),
CannotCreateRuntimeDirectory(String),
CannotRemoveRuntimeDirectory(String),
CannotCreateStateDirectory(String),
StateFileNotFound = 14,
StateFileCorrupted = 15,
InvalidStateEntryChecksum(u64, u64, u64),
CannotOpenDatabase(String),
ResourceNotFound(String),
CannotCloseWebSocketConnection(String),
StaleClient = 30,
TcpError = 31,
QuicError = 32,
InvalidServerAddress = 33,
InvalidClientAddress = 34,
InvalidIpAddress(String, String),
HttpError(String),
Unauthenticated = 40,
Unauthorized = 41,
InvalidCredentials = 42,
InvalidUsername = 43,
InvalidPassword = 44,
InvalidUserStatus = 45,
UserAlreadyExists = 46,
UserInactive = 47,
CannotDeleteUser(u32),
CannotChangePermissions(u32),
InvalidPersonalAccessTokenName = 50,
PersonalAccessTokenAlreadyExists(String, u32),
PersonalAccessTokensLimitReached(u32, u32),
InvalidPersonalAccessToken = 53,
PersonalAccessTokenExpired(String, u32),
UsersLimitReached = 55,
NotConnected = 61,
ClientShutdown = 63,
InvalidTlsDomain = 64,
InvalidTlsCertificatePath = 65,
InvalidTlsCertificate = 66,
FailedToAddCertificate = 67,
InvalidEncryptionKey = 70,
CannotEncryptData = 71,
CannotDecryptData = 72,
InvalidJwtAlgorithm(String),
InvalidJwtSecret = 74,
JwtMissing = 75,
CannotGenerateJwt = 76,
AccessTokenMissing = 77,
InvalidAccessToken = 78,
InvalidSizeBytes = 80,
InvalidUtf8 = 81,
InvalidNumberEncoding = 82,
InvalidBooleanValue = 83,
InvalidNumberValue = 84,
ClientNotFound(u32),
InvalidClientId = 101,
ConnectionClosed = 206,
CannotParseHeaderKind(String),
HttpResponseError(u16, String),
InvalidHttpRequest = 301,
InvalidJsonResponse = 302,
InvalidBytesResponse = 303,
EmptyResponse = 304,
CannotCreateEndpoint = 305,
CannotParseUrl = 306,
WebSocketError = 400,
WebSocketConnectionError = 401,
WebSocketCloseError = 402,
WebSocketReceiveError = 403,
WebSocketSendError = 404,
CannotCreateStreamsDirectory(String),
CannotCreateStreamDirectory(u32, String),
CannotCreateStreamInfo(u32),
CannotUpdateStreamInfo(u32),
CannotOpenStreamInfo(u32),
CannotReadStreamInfo(u32),
CannotCreateStream(u32),
CannotDeleteStream(u32),
CannotDeleteStreamDirectory(u32),
StreamIdNotFound(Identifier),
StreamNameNotFound(String),
StreamDirectoryNotFound(String),
StreamNameAlreadyExists(String),
InvalidStreamName = 1_013,
InvalidStreamId = 1_014,
CannotReadStreams = 1_015,
InvalidTopicSize(MaxTopicSize, IggyByteSize),
CannotCreateTopicsDirectory(Identifier, String),
CannotCreateTopicDirectory(usize, usize, String),
CannotCreateTopicInfo(u32, u32),
CannotUpdateTopicInfo(u32, u32),
CannotOpenTopicInfo(u32, u32),
CannotReadTopicInfo(u32, u32),
CannotCreateTopic(u32, u32),
CannotDeleteTopic(u32, u32),
CannotDeleteTopicDirectory(u32, u32, String),
CannotPollTopic = 2_009,
TopicIdNotFound(Identifier, Identifier),
TopicNameNotFound(String, String),
TopicNameAlreadyExists(String, Identifier),
InvalidTopicName = 2_014,
TooManyPartitions = 2_015,
InvalidTopicId = 2_016,
CannotReadTopics(u32),
InvalidReplicationFactor = 2_018,
InvalidPartitionsCount = 2_019,
TopicDirectoryNotFound(String),
CannotCreatePartition(usize, usize, usize),
CannotCreatePartitionsDirectory(usize, usize),
CannotCreatePartitionDirectory(usize, usize, usize),
CannotOpenPartitionLogFile = 3_003,
CannotReadPartitions = 3_004,
CannotDeletePartition(usize, Identifier, Identifier),
CannotDeletePartitionDirectory(usize, usize, usize),
PartitionNotFound(usize, Identifier, Identifier),
NoPartitions(Identifier, Identifier),
TopicFull(Identifier, Identifier),
CannotDeleteConsumerOffsetsDirectory(String),
CannotDeleteConsumerOffsetFile(String),
CannotCreateConsumerOffsetsDirectory(String),
CannotReadConsumerOffsets(String),
ConsumerOffsetNotFound(usize),
NotResolvedConsumer(Identifier),
CannotOpenConsumerOffsetsFile(String),
SegmentNotFound = 4_000,
SegmentClosed(u64, usize),
InvalidSegmentSize(u64),
CannotCreateSegmentLogFile(String),
CannotCreateSegmentIndexFile(String),
CannotCreateSegmentTimeIndexFile(String),
CannotSaveMessagesToSegment = 4_006,
CannotSaveIndexToSegment = 4_007,
CannotSaveTimeIndexToSegment = 4_008,
InvalidMessagesCount = 4_009,
CannotAppendMessage = 4_010,
CannotReadMessage = 4_011,
CannotReadMessageId = 4_012,
CannotReadMessageState = 4_013,
CannotReadMessageTimestamp = 4_014,
CannotReadHeadersLength = 4_015,
CannotReadHeadersPayload = 4_016,
TooBigUserHeaders = 4_017,
InvalidHeaderKey = 4_018,
InvalidHeaderValue = 4_019,
CannotReadMessageLength = 4_020,
CannotReadMessagePayload = 4_021,
TooBigMessagePayload = 4_022,
TooManyMessages = 4_023,
EmptyMessagePayload = 4_024,
InvalidMessagePayloadLength = 4_025,
CannotReadMessageChecksum = 4_026,
InvalidMessageChecksum(u64, u64, u64),
InvalidKeyValueLength = 4_028,
CommandLengthError(String),
InvalidSegmentsCount(u32),
NonZeroOffset(u64, u32),
NonZeroTimestamp(u64, u32),
MissingIndex(u32),
InvalidIndexesByteSize(u32),
InvalidIndexesCount(u32, u32),
InvalidMessagesSize(u32, u32),
TooSmallMessage(u32, u32),
CannotSendMessagesDueToClientDisconnection = 4_050,
BackgroundSendError = 4_051,
BackgroundSendTimeout = 4_052,
BackgroundSendBufferFull = 4_053,
BackgroundWorkerDisconnected = 4_054,
BackgroundSendBufferOverflow = 4_055,
ProducerSendFailed {
cause: Box<IggyError>,
failed: Arc<Vec<IggyMessage>>,
stream_name: String,
topic_name: String,
},
ProducerClosed = 4_057,
InvalidOffset(u64),
InvalidReservedField(u64),
ConsumerGroupIdNotFound(Identifier, Identifier),
InvalidConsumerGroupId = 5_002,
ConsumerGroupNameNotFound(String, Identifier),
ConsumerGroupNameAlreadyExists(String, Identifier),
InvalidConsumerGroupName = 5_005,
ConsumerGroupMemberNotFound(u32, Identifier, Identifier),
CannotCreateConsumerGroupInfo(usize, Identifier, Identifier),
CannotDeleteConsumerGroupInfo(usize, Identifier, Identifier),
MissingBaseOffsetRetainedMessageBatch = 6_000,
MissingLastOffsetDeltaRetainedMessageBatch = 6_001,
MissingMaxTimestampRetainedMessageBatch = 6_002,
MissingLengthRetainedMessageBatch = 6_003,
MissingPayloadRetainedMessageBatch = 6_004,
CannotReadBatchBaseOffset = 7_000,
CannotReadBatchLength = 7_001,
CannotReadLastOffsetDelta = 7_002,
CannotReadMaxTimestamp = 7_003,
CannotReadBatchPayload = 7_004,
InvalidConnectionString = 8_000,
SnapshotFileCompletionFailed = 9_000,
CannotSerializeResource = 10_000,
CannotDeserializeResource = 10_001,
CannotReadFile = 10_002,
CannotReadFileMetadata = 10_003,
CannotSeekFile = 10_004,
CannotAppendToFile = 10_005,
CannotWriteToFile = 10_006,
CannotOverwriteFile = 10_007,
CannotDeleteFile = 10_008,
CannotSyncFile = 10_009,
CannotReadIndexOffset = 10_010,
CannotReadIndexPosition = 10_011,
CannotReadIndexTimestamp = 10_012,
TimestampOutOfRange(u64),
ShardNotFound(usize, usize, usize),
ShardCommunicationError = 11_001,
CannotBindToSocket(String),
TaskTimeout = 12_001,
IoError(String),
}Variants§
Error = 1
InvalidConfiguration = 2
InvalidCommand = 3
InvalidFormat = 4
InvalidIdentifier = 6
InvalidVersion(String)
Disconnected = 8
CannotEstablishConnection = 9
CannotCreateBaseDirectory(String)
CannotCreateRuntimeDirectory(String)
CannotRemoveRuntimeDirectory(String)
CannotCreateStateDirectory(String)
StateFileNotFound = 14
StateFileCorrupted = 15
InvalidStateEntryChecksum(u64, u64, u64)
CannotOpenDatabase(String)
ResourceNotFound(String)
CannotCloseWebSocketConnection(String)
StaleClient = 30
TcpError = 31
QuicError = 32
InvalidServerAddress = 33
InvalidClientAddress = 34
InvalidIpAddress(String, String)
HttpError(String)
Unauthenticated = 40
InvalidCredentials = 42
InvalidUsername = 43
InvalidPassword = 44
InvalidUserStatus = 45
UserAlreadyExists = 46
UserInactive = 47
CannotDeleteUser(u32)
CannotChangePermissions(u32)
InvalidPersonalAccessTokenName = 50
PersonalAccessTokenAlreadyExists(String, u32)
PersonalAccessTokensLimitReached(u32, u32)
InvalidPersonalAccessToken = 53
PersonalAccessTokenExpired(String, u32)
UsersLimitReached = 55
NotConnected = 61
ClientShutdown = 63
InvalidTlsDomain = 64
InvalidTlsCertificatePath = 65
InvalidTlsCertificate = 66
FailedToAddCertificate = 67
InvalidEncryptionKey = 70
CannotEncryptData = 71
CannotDecryptData = 72
InvalidJwtAlgorithm(String)
InvalidJwtSecret = 74
JwtMissing = 75
CannotGenerateJwt = 76
AccessTokenMissing = 77
InvalidAccessToken = 78
InvalidSizeBytes = 80
InvalidUtf8 = 81
InvalidNumberEncoding = 82
InvalidBooleanValue = 83
InvalidNumberValue = 84
ClientNotFound(u32)
InvalidClientId = 101
ConnectionClosed = 206
CannotParseHeaderKind(String)
HttpResponseError(u16, String)
InvalidHttpRequest = 301
InvalidJsonResponse = 302
InvalidBytesResponse = 303
EmptyResponse = 304
CannotCreateEndpoint = 305
CannotParseUrl = 306
WebSocketError = 400
WebSocketConnectionError = 401
WebSocketCloseError = 402
WebSocketReceiveError = 403
WebSocketSendError = 404
CannotCreateStreamsDirectory(String)
CannotCreateStreamDirectory(u32, String)
CannotCreateStreamInfo(u32)
CannotUpdateStreamInfo(u32)
CannotOpenStreamInfo(u32)
CannotReadStreamInfo(u32)
CannotCreateStream(u32)
CannotDeleteStream(u32)
CannotDeleteStreamDirectory(u32)
StreamIdNotFound(Identifier)
StreamNameNotFound(String)
StreamDirectoryNotFound(String)
StreamNameAlreadyExists(String)
InvalidStreamName = 1_013
InvalidStreamId = 1_014
CannotReadStreams = 1_015
InvalidTopicSize(MaxTopicSize, IggyByteSize)
CannotCreateTopicsDirectory(Identifier, String)
CannotCreateTopicDirectory(usize, usize, String)
CannotCreateTopicInfo(u32, u32)
CannotUpdateTopicInfo(u32, u32)
CannotOpenTopicInfo(u32, u32)
CannotReadTopicInfo(u32, u32)
CannotCreateTopic(u32, u32)
CannotDeleteTopic(u32, u32)
CannotDeleteTopicDirectory(u32, u32, String)
CannotPollTopic = 2_009
TopicIdNotFound(Identifier, Identifier)
TopicNameNotFound(String, String)
TopicNameAlreadyExists(String, Identifier)
InvalidTopicName = 2_014
TooManyPartitions = 2_015
InvalidTopicId = 2_016
CannotReadTopics(u32)
InvalidReplicationFactor = 2_018
InvalidPartitionsCount = 2_019
TopicDirectoryNotFound(String)
CannotCreatePartition(usize, usize, usize)
CannotCreatePartitionsDirectory(usize, usize)
CannotCreatePartitionDirectory(usize, usize, usize)
CannotOpenPartitionLogFile = 3_003
CannotReadPartitions = 3_004
CannotDeletePartition(usize, Identifier, Identifier)
CannotDeletePartitionDirectory(usize, usize, usize)
PartitionNotFound(usize, Identifier, Identifier)
NoPartitions(Identifier, Identifier)
TopicFull(Identifier, Identifier)
CannotDeleteConsumerOffsetsDirectory(String)
CannotDeleteConsumerOffsetFile(String)
CannotCreateConsumerOffsetsDirectory(String)
CannotReadConsumerOffsets(String)
ConsumerOffsetNotFound(usize)
NotResolvedConsumer(Identifier)
CannotOpenConsumerOffsetsFile(String)
SegmentNotFound = 4_000
SegmentClosed(u64, usize)
InvalidSegmentSize(u64)
CannotCreateSegmentLogFile(String)
CannotCreateSegmentIndexFile(String)
CannotCreateSegmentTimeIndexFile(String)
CannotSaveMessagesToSegment = 4_006
CannotSaveIndexToSegment = 4_007
CannotSaveTimeIndexToSegment = 4_008
InvalidMessagesCount = 4_009
CannotAppendMessage = 4_010
CannotReadMessage = 4_011
CannotReadMessageId = 4_012
CannotReadMessageState = 4_013
CannotReadMessageTimestamp = 4_014
CannotReadHeadersLength = 4_015
CannotReadHeadersPayload = 4_016
TooBigUserHeaders = 4_017
InvalidHeaderKey = 4_018
InvalidHeaderValue = 4_019
CannotReadMessageLength = 4_020
CannotReadMessagePayload = 4_021
TooBigMessagePayload = 4_022
TooManyMessages = 4_023
EmptyMessagePayload = 4_024
InvalidMessagePayloadLength = 4_025
CannotReadMessageChecksum = 4_026
InvalidMessageChecksum(u64, u64, u64)
InvalidKeyValueLength = 4_028
CommandLengthError(String)
InvalidSegmentsCount(u32)
NonZeroOffset(u64, u32)
NonZeroTimestamp(u64, u32)
MissingIndex(u32)
InvalidIndexesByteSize(u32)
InvalidIndexesCount(u32, u32)
InvalidMessagesSize(u32, u32)
TooSmallMessage(u32, u32)
CannotSendMessagesDueToClientDisconnection = 4_050
BackgroundSendError = 4_051
BackgroundSendTimeout = 4_052
BackgroundSendBufferFull = 4_053
BackgroundWorkerDisconnected = 4_054
BackgroundSendBufferOverflow = 4_055
ProducerSendFailed
ProducerClosed = 4_057
InvalidOffset(u64)
InvalidReservedField(u64)
ConsumerGroupIdNotFound(Identifier, Identifier)
InvalidConsumerGroupId = 5_002
ConsumerGroupNameNotFound(String, Identifier)
ConsumerGroupNameAlreadyExists(String, Identifier)
InvalidConsumerGroupName = 5_005
ConsumerGroupMemberNotFound(u32, Identifier, Identifier)
CannotCreateConsumerGroupInfo(usize, Identifier, Identifier)
CannotDeleteConsumerGroupInfo(usize, Identifier, Identifier)
MissingBaseOffsetRetainedMessageBatch = 6_000
MissingLastOffsetDeltaRetainedMessageBatch = 6_001
MissingMaxTimestampRetainedMessageBatch = 6_002
MissingLengthRetainedMessageBatch = 6_003
MissingPayloadRetainedMessageBatch = 6_004
CannotReadBatchBaseOffset = 7_000
CannotReadBatchLength = 7_001
CannotReadLastOffsetDelta = 7_002
CannotReadMaxTimestamp = 7_003
CannotReadBatchPayload = 7_004
InvalidConnectionString = 8_000
SnapshotFileCompletionFailed = 9_000
CannotSerializeResource = 10_000
CannotDeserializeResource = 10_001
CannotReadFile = 10_002
CannotReadFileMetadata = 10_003
CannotSeekFile = 10_004
CannotAppendToFile = 10_005
CannotWriteToFile = 10_006
CannotOverwriteFile = 10_007
CannotDeleteFile = 10_008
CannotSyncFile = 10_009
CannotReadIndexOffset = 10_010
CannotReadIndexPosition = 10_011
CannotReadIndexTimestamp = 10_012
TimestampOutOfRange(u64)
ShardNotFound(usize, usize, usize)
ShardCommunicationError = 11_001
CannotBindToSocket(String)
TaskTimeout = 12_001
IoError(String)
Implementations§
Trait Implementations§
Source§impl Error for IggyError
impl Error for IggyError
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<'_enum> From<&'_enum IggyError> for IggyErrorDiscriminants
impl<'_enum> From<&'_enum IggyError> for IggyErrorDiscriminants
Source§fn from(val: &'_enum IggyError) -> IggyErrorDiscriminants
fn from(val: &'_enum IggyError) -> IggyErrorDiscriminants
Converts to this type from the input type.
Source§impl From<IggyError> for ClientError
impl From<IggyError> for ClientError
Source§impl From<IggyError> for IggyErrorDiscriminants
impl From<IggyError> for IggyErrorDiscriminants
Source§fn from(val: IggyError) -> IggyErrorDiscriminants
fn from(val: IggyError) -> IggyErrorDiscriminants
Converts to this type from the input type.
Source§impl IntoDiscriminant for IggyError
impl IntoDiscriminant for IggyError
Source§type Discriminant = IggyErrorDiscriminants
type Discriminant = IggyErrorDiscriminants
Enum listing the same variants as this enum but without any data fields
fn discriminant(&self) -> Self::Discriminant
Source§impl Validatable<IggyError> for ChangePassword
impl Validatable<IggyError> for ChangePassword
Source§impl Validatable<IggyError> for CreateConsumerGroup
impl Validatable<IggyError> for CreateConsumerGroup
Source§impl Validatable<IggyError> for CreatePartitions
impl Validatable<IggyError> for CreatePartitions
Source§impl Validatable<IggyError> for CreateStream
impl Validatable<IggyError> for CreateStream
Source§impl Validatable<IggyError> for CreateTopic
impl Validatable<IggyError> for CreateTopic
Source§impl Validatable<IggyError> for DeleteConsumerGroup
impl Validatable<IggyError> for DeleteConsumerGroup
Source§impl Validatable<IggyError> for DeleteConsumerOffset
impl Validatable<IggyError> for DeleteConsumerOffset
Source§impl Validatable<IggyError> for DeletePartitions
impl Validatable<IggyError> for DeletePartitions
Source§impl Validatable<IggyError> for DeleteSegments
impl Validatable<IggyError> for DeleteSegments
Source§impl Validatable<IggyError> for DeleteStream
impl Validatable<IggyError> for DeleteStream
Source§impl Validatable<IggyError> for DeleteTopic
impl Validatable<IggyError> for DeleteTopic
Source§impl Validatable<IggyError> for FlushUnsavedBuffer
impl Validatable<IggyError> for FlushUnsavedBuffer
Source§impl Validatable<IggyError> for GetClusterMetadata
impl Validatable<IggyError> for GetClusterMetadata
Source§impl Validatable<IggyError> for GetConsumerGroup
impl Validatable<IggyError> for GetConsumerGroup
Source§impl Validatable<IggyError> for GetConsumerGroups
impl Validatable<IggyError> for GetConsumerGroups
Source§impl Validatable<IggyError> for GetConsumerOffset
impl Validatable<IggyError> for GetConsumerOffset
Source§impl Validatable<IggyError> for GetSnapshot
impl Validatable<IggyError> for GetSnapshot
Source§impl Validatable<IggyError> for IggyMessagesBatch
impl Validatable<IggyError> for IggyMessagesBatch
Source§impl Validatable<IggyError> for IggyMessagesBatchMut
impl Validatable<IggyError> for IggyMessagesBatchMut
Source§impl Validatable<IggyError> for JoinConsumerGroup
impl Validatable<IggyError> for JoinConsumerGroup
Source§impl Validatable<IggyError> for LeaveConsumerGroup
impl Validatable<IggyError> for LeaveConsumerGroup
Source§impl Validatable<IggyError> for PollMessages
impl Validatable<IggyError> for PollMessages
Source§impl Validatable<IggyError> for PurgeStream
impl Validatable<IggyError> for PurgeStream
Source§impl Validatable<IggyError> for SendMessages
impl Validatable<IggyError> for SendMessages
Source§impl Validatable<IggyError> for StoreConsumerOffset
impl Validatable<IggyError> for StoreConsumerOffset
Source§impl Validatable<IggyError> for UpdatePermissions
impl Validatable<IggyError> for UpdatePermissions
Source§impl Validatable<IggyError> for UpdateStream
impl Validatable<IggyError> for UpdateStream
Source§impl Validatable<IggyError> for UpdateTopic
impl Validatable<IggyError> for UpdateTopic
Auto Trait Implementations§
impl Freeze for IggyError
impl RefUnwindSafe for IggyError
impl Send for IggyError
impl Sync for IggyError
impl Unpin for IggyError
impl UnsafeUnpin for IggyError
impl UnwindSafe for IggyError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more