pub enum SubscribeError {
NoPaths,
TooManyPaths,
Full,
FabricQuota,
}Expand description
Why a SubscribeRequest was refused.
Variants§
NoPaths
§8.5.2.2: “At least one attribute or event SHALL be indicated in the action.”
TooManyPaths
More paths than Config::SUB_PATHS admits.
Full
More subscriptions than Config::SUBSCRIPTIONS admits. §8.10’s RESOURCE_EXHAUSTED.
FabricQuota
This fabric already holds Config::SUBSCRIPTIONS_PER_FABRIC subscriptions.
Distinct from SubscribeError::Full because the table may have plenty of room: the
slots left are promised to other fabrics, and handing them out would break §2.11.2.2’s
guarantee that “every fabric the node is commissioned into can support at least three
Subscribe Interactions”. Both answer RESOURCE_EXHAUSTED on the wire — there is no
status for “not yours” — but an integrator reading a log needs to tell them apart.
Implementations§
Trait Implementations§
Source§impl Clone for SubscribeError
impl Clone for SubscribeError
Source§fn clone(&self) -> SubscribeError
fn clone(&self) -> SubscribeError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SubscribeError
Source§impl Debug for SubscribeError
impl Debug for SubscribeError
impl Eq for SubscribeError
Source§impl From<SubscribeError> for Error
Builds the Err for a refusal, so a caller can answer a StatusResponse.
impl From<SubscribeError> for Error
Builds the Err for a refusal, so a caller can answer a StatusResponse.