pub enum ChannelRegistryError {
AlreadyRegistered {
name: String,
field: ChannelConfigField,
},
NotRegistered {
name: String,
},
AlreadyQuiesced {
name: String,
reason: String,
},
SchemaRejected {
name: String,
message: String,
},
DurableInitFailed {
name: String,
message: String,
},
CapNotConfigured {
cap: &'static str,
},
CapReached {
cap: &'static str,
limit: usize,
},
RosterUnavailable {
message: String,
},
}Expand description
Failures of the registration APIs. Never reaches the wire.
Variants§
AlreadyRegistered
The name exists with a DIFFERENT configuration. field names the first
field that differs, by type — never a string a consumer must parse.
Fields
field: ChannelConfigFieldThe first field of the compared set that did not match.
NotRegistered
Quiesce or probe named a channel that is not on the roster.
AlreadyQuiesced
Re-quiesce under a DIFFERENT reason. Quiesce is one-way and its reason is written once; a second reason would silently lose one of the two.
Fields
SchemaRejected
The schema bytes did not parse as JSON, or did not compile as a JSON Schema.
Fields
DurableInitFailed
Durable initialization over the shared store failed.
Fields
CapNotConfigured
Runtime registration was attempted with no cap declared. Refused rather than admitted: unbounded-by-default is not a bound.
CapReached
The declared cap is already reached.
Fields
The roster lock is poisoned.
Trait Implementations§
Source§impl Debug for ChannelRegistryError
impl Debug for ChannelRegistryError
Source§impl Display for ChannelRegistryError
impl Display for ChannelRegistryError
Source§impl Error for ChannelRegistryError
impl Error for ChannelRegistryError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()