async_nats::jetstream

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.6.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.6.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 T)

🔬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>,