Struct ErrorCode

Source
pub struct ErrorCode(/* private fields */);

Implementations§

Source§

impl ErrorCode

Source

pub const CLUSTER_PEER_NOT_MEMBER: ErrorCode

Peer not a member

Source

pub const CONSUMER_EPHEMERAL_WITH_DURABLE: ErrorCode

Consumer expected to be ephemeral but detected a durable name set in subject

Source

pub const STREAM_EXTERNAL_DELETE_PREFIX_OVERLAPS: ErrorCode

Stream external delivery prefix overlaps with stream subject

Source

pub const ACCOUNT_RESOURCES_EXCEEDED: ErrorCode

Resource limits exceeded for account

Source

pub const CLUSTER_NOT_AVAILABLE: ErrorCode

Jetstream system temporarily unavailable

Source

pub const STREAM_SUBJECT_OVERLAP: ErrorCode

Subjects overlap with an existing stream

Source

pub const STREAM_WRONG_LAST_SEQUENCE: ErrorCode

Wrong last sequence

Source

pub const NAME_NOT_MATCH_SUBJECT: ErrorCode

Template name in subject does not match request

Source

pub const CLUSTER_NO_PEERS: ErrorCode

No suitable peers for placement

Source

pub const CONSUMER_EPHEMERAL_WITH_DURABLE_NAME: ErrorCode

Consumer expected to be ephemeral but a durable name was set in request

Source

pub const INSUFFICIENT_RESOURCES: ErrorCode

Insufficient resources

Source

pub const MIRROR_MAX_MESSAGE_SIZE_TOO_BIG: ErrorCode

Stream mirror must have max message size >= source

Source

pub const STREAM_DELETE_FAILED: ErrorCode

Generic error from stream deletion operation

Source

pub const BAD_REQUEST: ErrorCode

Bad request

Source

pub const NOT_SUPPORTED_IN_CLUSTER_MODE: ErrorCode

Not currently supported in clustered mode

Source

pub const CONSUMER_NOT_FOUND: ErrorCode

Consumer not found

Source

pub const SOURCE_MAX_MESSAGE_SIZE_TOO_BIG: ErrorCode

Stream source must have max message size >= target

Source

pub const STREAM_ASSIGNMENT: ErrorCode

Generic error when stream operation fails.

Source

pub const STREAM_MESSAGE_EXCEEDS_MAXIMUM: ErrorCode

Message size exceeds maximum allowed

Source

pub const STREAM_CREATE_TEMPLATE: ErrorCode

Generic error for stream creation error with a string

Source

pub const INVALID_JSON: ErrorCode

Invalid JSON

Source

pub const STREAM_INVALID_EXTERNAL_DELIVERY_SUBJECT: ErrorCode

Stream external delivery prefix must not contain wildcards

Source

pub const STREAM_RESTORE: ErrorCode

Restore failed

Source

pub const CLUSTER_INCOMPLETE: ErrorCode

Incomplete results

Source

pub const NO_ACCOUNT: ErrorCode

Account not found

Source

pub const RAFT_GENERAL: ErrorCode

General RAFT error

Source

pub const RESTORE_SUBSCRIBE_FAILED: ErrorCode

Jetstream unable to subscribe to restore snapshot

Source

pub const STREAM_DELETE: ErrorCode

Stream deletion failed

Source

pub const STREAM_EXTERNAL_API_OVERLAP: ErrorCode

Stream external api prefix must not overlap

Source

pub const MIRROR_WITH_SUBJECTS: ErrorCode

Stream mirrors can not contain subjects

Source

pub const JETSTREAM_NOT_ENABLED: ErrorCode

Jetstream not enabled

Source

pub const JETSTREAM_NOT_ENABLED_FOR_ACCOUNT: ErrorCode

Jetstream not enabled for account

Source

pub const SEQUENCE_NOT_FOUND: ErrorCode

Sequence not found

Source

pub const STREAM_MIRROR_NOT_UPDATABLE: ErrorCode

Stream mirror configuration can not be updated

Source

pub const STREAM_SEQUENCE_NOT_MATCH: ErrorCode

Expected stream sequence does not match

Source

pub const STREAM_WRONG_LAST_MESSAGE_ID: ErrorCode

Wrong last msg id

Source

pub const TEMP_STORAGE_FAILED: ErrorCode

Jetstream unable to open temp storage for restore

Source

pub const STORAGE_RESOURCES_EXCEEDED: ErrorCode

Insufficient storage resources available

Source

pub const STREAM_MISMATCH: ErrorCode

Stream name in subject does not match request

Source

pub const STREAM_NOT_MATCH: ErrorCode

Expected stream does not match

Source

pub const MIRROR_CONSUMER_SETUP_FAILED: ErrorCode

Setting up consumer mirror failed

Source

pub const NOT_EMPTY_REQUEST: ErrorCode

Expected an empty request payload

Source

pub const STREAM_NAME_EXIST: ErrorCode

Stream name already in use with a different configuration

Source

pub const CLUSTER_TAGS: ErrorCode

Tags placement not supported for operation

Source

pub const MAXIMUM_CONSUMERS_LIMIT: ErrorCode

Maximum consumers limit reached

Source

pub const SOURCE_CONSUMER_SETUP_FAILED: ErrorCode

General source consumer setup failure

Source

pub const CONSUMER_CREATE: ErrorCode

Consumer creation failed

Source

pub const CONSUMER_DURABLE_NAME_NOT_IN_SUBJECT: ErrorCode

Consumer expected to be durable but no durable name set in subject

Source

pub const STREAM_LIMITS: ErrorCode

Stream limits error

Source

pub const STREAM_REPLICAS_NOT_UPDATABLE: ErrorCode

Replicas configuration can not be updated

Source

pub const STREAM_TEMPLATE_NOT_FOUND: ErrorCode

Template not found

Source

pub const CLUSTER_NOT_ASSIGNED: ErrorCode

Jetstream cluster not assigned to this server

Source

pub const CLUSTER_NOT_LEADER: ErrorCode

Jetstream cluster can’t handle request

Source

pub const CONSUMER_NAME_EXIST: ErrorCode

Consumer name already in use

Source

pub const MIRROR_WITH_SOURCES: ErrorCode

Stream mirrors can’t also contain other sources

Source

pub const STREAM_NOT_FOUND: ErrorCode

Stream not found

Source

pub const CLUSTER_REQUIRED: ErrorCode

Jetstream clustering support required

Source

pub const CONSUMER_DURABLE_NAME_NOT_SET: ErrorCode

Consumer expected to be durable but a durable name was not set

Source

pub const MAXIMUM_STREAMS_LIMIT: ErrorCode

Maximum number of streams reached

Source

pub const MIRROR_WITH_START_SEQUENCE_AND_TIME: ErrorCode

Stream mirrors can not have both start seq and start time configured

Source

pub const STREAM_SNAPSHOT: ErrorCode

Stream snapshot failed

Source

pub const STREAM_UPDATE: ErrorCode

Stream update failed

Source

pub const CLUSTER_NOT_ACTIVE: ErrorCode

Jetstream not in clustered mode

Source

pub const CONSUMER_DURABLE_NAME_NOT_MATCH_SUBJECT: ErrorCode

Consumer name in subject does not match durable name in request

Source

pub const MEMORY_RESOURCES_EXCEEDED: ErrorCode

Insufficient memory resources available

Source

pub const MIRROR_WITH_SUBJECT_FILTERS: ErrorCode

Stream mirrors can not contain filtered subjects

Source

pub const STREAM_CREATE: ErrorCode

Stream create failed with a string

Source

pub const CLUSTER_SERVER_NOT_MEMBER: ErrorCode

Server is not a member of the cluster

Source

pub const NO_MESSAGE_FOUND: ErrorCode

No message found

Source

pub const SNAPSHOT_DELIVER_SUBJECT_INVALID: ErrorCode

Deliver subject not valid

Source

pub const STREAM_GENERALOR: ErrorCode

General stream failure

Source

pub const STREAM_INVALID_CONFIG: ErrorCode

Invalid stream config

Source

pub const STREAM_REPLICAS_NOT_SUPPORTED: ErrorCode

Replicas > 1 not supported in non-clustered mode

Source

pub const STREAM_MESSAGE_DELETE_FAILED: ErrorCode

Stream message delete failed

Source

pub const PEER_REMAP: ErrorCode

Peer remap failed

Source

pub const STREAM_STORE_FAILED: ErrorCode

Stream store failed

Source

pub const CONSUMER_CONFIG_REQUIRED: ErrorCode

Consumer config required

Source

pub const CONSUMER_DELIVER_TO_WILDCARDS: ErrorCode

Consumer deliver subject has wildcards

Source

pub const CONSUMER_PUSH_MAX_WAITING: ErrorCode

Consumer in push mode can not set max waiting

Source

pub const CONSUMER_DELIVER_CYCLE: ErrorCode

Consumer deliver subject forms a cycle

Source

pub const CONSUMER_MAX_PENDING_ACK_POLICY_REQUIRED: ErrorCode

Consumer requires ack policy for max ack pending

Source

pub const CONSUMER_SMALL_HEARTBEAT: ErrorCode

Consumer idle heartbeat needs to be >= 100ms

Source

pub const CONSUMER_PULL_REQUIRES_ACK: ErrorCode

Consumer in pull mode requires ack policy

Source

pub const CONSUMER_PULL_NOT_DURABLE: ErrorCode

Consumer in pull mode requires a durable name

Source

pub const CONSUMER_PULL_WITH_RATE_LIMIT: ErrorCode

Consumer in pull mode can not have rate limit set

Source

pub const CONSUMER_MAX_WAITING_NEGATIVE: ErrorCode

Consumer max waiting needs to be positive

Source

pub const CONSUMER_HEARTBEAT_REQUIRES_PUSH: ErrorCode

Consumer idle heartbeat requires a push based consumer

Source

pub const CONSUMER_FLOW_CONTROL_REQUIRES_PUSH: ErrorCode

Consumer flow control requires a push based consumer

Source

pub const CONSUMER_DIRECT_REQUIRES_PUSH: ErrorCode

Consumer direct requires a push based consumer

Source

pub const CONSUMER_DIRECT_REQUIRES_EPHEMERAL: ErrorCode

Consumer direct requires an ephemeral consumer

Source

pub const CONSUMER_ON_MAPPED: ErrorCode

Consumer direct on a mapped consumer

Source

pub const CONSUMER_FILTER_NOT_SUBSET: ErrorCode

Consumer filter subject is not a valid subset of the interest subjects

Source

pub const CONSUMER_INVALID_POLICY: ErrorCode

Invalid consumer policy

Source

pub const CONSUMER_INVALID_SAMPLING: ErrorCode

Failed to parse consumer sampling configuration

Source

pub const STREAM_INVALID: ErrorCode

Stream not valid

Source

pub const CONSUMER_WQ_REQUIRES_EXPLICIT_ACK: ErrorCode

Workqueue stream requires explicit ack

Source

pub const CONSUMER_WQ_MULTIPLE_UNFILTERED: ErrorCode

Multiple non-filtered consumers not allowed on workqueue stream

Source

pub const CONSUMER_WQ_CONSUMER_NOT_UNIQUE: ErrorCode

Filtered consumer not unique on workqueue stream

Source

pub const CONSUMER_WQ_CONSUMER_NOT_DELIVER_ALL: ErrorCode

Consumer must be deliver all on workqueue stream

Source

pub const CONSUMER_NAME_TOO_LONG: ErrorCode

Consumer name is too long

Source

pub const CONSUMER_BAD_DURABLE_NAME: ErrorCode

Durable name can not contain token separators and wildcards

Source

pub const CONSUMER_STORE_FAILED: ErrorCode

Error creating store for consumer

Source

pub const CONSUMER_EXISTING_ACTIVE: ErrorCode

Consumer already exists and is still active

Source

pub const CONSUMER_REPLACEMENT_WITH_DIFFERENT_NAME: ErrorCode

Consumer replacement durable config not the same

Source

pub const CONSUMER_DESCRIPTION_TOO_LONG: ErrorCode

Consumer description is too long

Source

pub const STREAM_HEADER_EXCEEDS_MAXIMUM: ErrorCode

Header size exceeds maximum allowed of 64k

Source

pub const CONSUMER_WITH_FLOW_CONTROL_NEEDS_HEARTBEATS: ErrorCode

Consumer with flow control also needs heartbeats

Source

pub const STREAM_SEALED: ErrorCode

Invalid operation on sealed stream

Source

pub const STREAM_PURGE_FAILED: ErrorCode

Stream purge failed

Source

pub const STREAM_ROLLUP_FAILED: ErrorCode

Stream rollup failed

Source

pub const CONSUMER_INVALID_DELIVER_SUBJECT: ErrorCode

Invalid push consumer deliver subject

Source

pub const STREAM_MAX_BYTES_REQUIRED: ErrorCode

Account requires a stream config to have max bytes set

Source

pub const CONSUMER_MAX_REQUEST_BATCH_NEGATIVE: ErrorCode

Consumer max request batch needs to be > 0

Source

pub const CONSUMER_MAX_REQUEST_EXPIRES_TO_SMALL: ErrorCode

Consumer max request expires needs to be >= 1ms

Source

pub const CONSUMER_MAX_DELIVER_BACKOFF: ErrorCode

Max deliver is required to be > length of backoff values

Source

pub const STREAM_INFO_MAX_SUBJECTS: ErrorCode

Subject details would exceed maximum allowed

Source

pub const STREAM_OFFLINE: ErrorCode

Stream is offline

Source

pub const CONSUMER_OFFLINE: ErrorCode

Consumer is offline

Source

pub const NO_LIMITS: ErrorCode

No jetstream default or applicable tiered limit present

Source

pub const CONSUMER_MAX_PENDING_ACK_EXCESS: ErrorCode

Consumer max ack pending exceeds system limit

Source

pub const STREAM_MAX_STREAM_BYTES_EXCEEDED: ErrorCode

Stream max bytes exceeds account limit max stream bytes

Source

pub const STREAM_MOVE_AND_SCALE: ErrorCode

Can not move and scale a stream in a single update

Source

pub const STREAM_MOVE_IN_PROGRESS: ErrorCode

Stream move already in progress

Source

pub const CONSUMER_MAX_REQUEST_BATCH_EXCEEDED: ErrorCode

Consumer max request batch exceeds server limit

Source

pub const CONSUMER_REPLICAS_EXCEEDS_STREAM: ErrorCode

Consumer config replica count exceeds parent stream

Source

pub const CONSUMER_NAME_CONTAINS_PATH_SEPARATORS: ErrorCode

Consumer name can not contain path separators

Source

pub const STREAM_NAME_CONTAINS_PATH_SEPARATORS: ErrorCode

Stream name can not contain path separators

Source

pub const STREAM_MOVE_NOT_IN_PROGRESS: ErrorCode

Stream move not in progress

Source

pub const STREAM_NAME_EXIST_RESTORE_FAILED: ErrorCode

Stream name already in use, cannot restore

Source

pub const CONSUMER_CREATE_FILTER_SUBJECT_MISMATCH: ErrorCode

Consumer create request did not match filtered subject from create subject

Source

pub const CONSUMER_CREATE_DURABLE_AND_NAME_MISMATCH: ErrorCode

Consumer durable and name have to be equal if both are provided

Source

pub const REPLICAS_COUNT_CANNOT_BE_NEGATIVE: ErrorCode

Replicas count cannot be negative

Source

pub const CONSUMER_REPLICAS_SHOULD_MATCH_STREAM: ErrorCode

Consumer config replicas must match interest retention stream’s replicas

Source

pub const CONSUMER_METADATA_LENGTH: ErrorCode

Consumer metadata exceeds maximum size

Source

pub const CONSUMER_DUPLICATE_FILTER_SUBJECTS: ErrorCode

Consumer cannot have both filter_subject and filter_subjects specified

Source

pub const CONSUMER_MULTIPLE_FILTERS_NOT_ALLOWED: ErrorCode

Consumer with multiple subject filters cannot use subject based api

Source

pub const CONSUMER_OVERLAPPING_SUBJECT_FILTERS: ErrorCode

Consumer subject filters cannot overlap

Source

pub const CONSUMER_EMPTY_FILTER: ErrorCode

Consumer filter in filter_subjects cannot be empty

Source

pub const SOURCE_DUPLICATE_DETECTED: ErrorCode

Duplicate source configuration detected

Source

pub const SOURCE_INVALID_STREAM_NAME: ErrorCode

Sourced stream name is invalid

Source

pub const MIRROR_INVALID_STREAM_NAME: ErrorCode

Mirrored stream name is invalid

Source

pub const SOURCE_MULTIPLE_FILTERS_NOT_ALLOWED: ErrorCode

Source with multiple subject transforms cannot also have a single subject filter

Source

pub const SOURCE_INVALID_SUBJECT_FILTER: ErrorCode

Source subject filter is invalid

Source

pub const SOURCE_INVALID_TRANSFORM_DESTINATION: ErrorCode

Source transform destination is invalid

Source

pub const SOURCE_OVERLAPPING_SUBJECT_FILTERS: ErrorCode

Source filters cannot overlap

Source

pub const CONSUMER_ALREADY_EXISTS: ErrorCode

Consumer already exists

Source

pub const CONSUMER_DOES_NOT_EXIST: ErrorCode

Consumer does not exist

Source

pub const MIRROR_MULTIPLE_FILTERS_NOT_ALLOWED: ErrorCode

Mirror with multiple subject transforms cannot also have a single subject filter

Source

pub const MIRROR_INVALID_SUBJECT_FILTER: ErrorCode

Mirror subject filter is invalid

Source

pub const MIRROR_OVERLAPPING_SUBJECT_FILTERS: ErrorCode

Mirror subject filters cannot overlap

Source

pub const CONSUMER_INACTIVE_THRESHOLD_EXCESS: ErrorCode

Consumer inactive threshold exceeds system limit

Trait Implementations§

Source§

impl Clone for ErrorCode

Source§

fn clone(&self) -> ErrorCode

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ErrorCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ErrorCode

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for ErrorCode

Source§

fn eq(&self, other: &ErrorCode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ErrorCode

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for ErrorCode

Source§

impl Eq for ErrorCode

Source§

impl StructuralPartialEq for ErrorCode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T