#[non_exhaustive]pub enum Refused {
Duplicate {
point: &'static str,
listener: String,
},
Cycle {
point: &'static str,
path: Vec<String>,
},
TypeMismatch {
point: &'static str,
},
AlreadyDeclared {
point: &'static str,
},
Threaded {
point: &'static str,
listener: String,
},
Unsupported {
point: &'static str,
capability: Capability,
},
NotEvent {
point: &'static str,
},
NotJournaled {
point: &'static str,
},
NotCrossable {
point: &'static str,
},
}Expand description
Why a declaration or a listener was refused. Nothing was changed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Duplicate
The point already has a listener with this id.
Cycle
The listener’s after/before would close a cycle: these
listeners, each to run before the next, the first again at the
end.
TypeMismatch
The point id is already registered with another Point type.
AlreadyDeclared
The point was already declared.
Threaded
A local listener asked for a thread of its own
(ListenOpts::threaded); it runs on the thread that registered
it.
Unsupported
The point needs a capability the bus does not offer
(PointDecl::needs); it was not
declared.
NotEvent
Only an event point is journaled or relayed
(PointSpec::journaled); it was not declared.
NotJournaled
An event was published through the journal on a point not declared journaled on this bus; nothing was recorded.
NotCrossable
The point is relayable but cannot cross: only an event point, or
a request point whose codec writes its value too
(Codec::request), crosses a process. It
was not declared.
Trait Implementations§
impl Eq for Refused
Source§impl Error for Refused
impl Error for Refused
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()