pub struct WorkerCapabilities {
pub protocol_version: u64,
pub features: BTreeSet<String>,
pub cpex_version: Option<String>,
}Expand description
What a worker reported it can do, from the spawn-time handshake.
An empty feature set is a valid, meaningful answer: it is what an old worker that does not know the handshake reports, and it must make the host fail closed rather than assume support.
Fields§
§protocol_version: u64The worker’s declared protocol version, or 0 if it reported none.
features: BTreeSet<String>Feature names the worker claims to implement.
cpex_version: Option<String>The installed cpex distribution version, for diagnostics only.
Never gated on: two builds shipped as 0.1.2 with different worker
protocols, so the version string cannot carry a decision. features is
the contract.
Implementations§
Trait Implementations§
Source§impl Clone for WorkerCapabilities
impl Clone for WorkerCapabilities
Source§impl Debug for WorkerCapabilities
impl Debug for WorkerCapabilities
Source§impl Default for WorkerCapabilities
impl Default for WorkerCapabilities
impl Eq for WorkerCapabilities
Source§impl PartialEq for WorkerCapabilities
impl PartialEq for WorkerCapabilities
impl StructuralPartialEq for WorkerCapabilities
Auto Trait Implementations§
impl Freeze for WorkerCapabilities
impl RefUnwindSafe for WorkerCapabilities
impl Send for WorkerCapabilities
impl Sync for WorkerCapabilities
impl Unpin for WorkerCapabilities
impl UnsafeUnpin for WorkerCapabilities
impl UnwindSafe for WorkerCapabilities
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.