Enum Refused
#[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,
contract: &'static str,
},
Contract {
point: &'static str,
contract: &'static str,
reason: String,
},
BadId {
id: String,
error: IdError,
},
}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 contract the bus does not offer
(PointDecl::needs,
PointDecl::facets); it was not
declared.
Contract
A capability contract refused what the point’s declaration or a call says for it: a journaled mark on a point that is not an event, a codec of another point, a publish on a point not journaled. Nothing was declared or recorded.
Fields
BadId
An id breaks the naming rule (check_id): a
point key’s id at declaration, a listener’s id when it
registers. Nothing was changed.