pub struct Station {
pub id: String,
pub name: String,
pub device: String,
pub kind: StationKind,
pub state: StationState,
pub subjects: Option<Vec<String>>,
pub activities: Option<Vec<StationActivity>>,
}Expand description
A station: a registered service.
Fields§
§id: StringThe station id (the responder’s subject).
name: StringIts name as shown.
device: StringThe device it runs on.
kind: StationKindWhat kind of station.
state: StationStateIts state.
subjects: Option<Vec<String>>SRV-027 R3: the subjects a registered worker serves (its registration’s task queue). Absent on a station that is not a worker.
activities: Option<Vec<StationActivity>>SRV-027 R3: what a registered worker accepts and returns, each activity’s schemas as the exact strings it registered; empty for a worker that declared none (raw bytes in and out). Absent on a station that is not a worker.
Trait Implementations§
impl Eq for Station
impl StructuralPartialEq for Station
Auto Trait Implementations§
impl Freeze for Station
impl RefUnwindSafe for Station
impl Send for Station
impl Sync for Station
impl Unpin for Station
impl UnsafeUnpin for Station
impl UnwindSafe for Station
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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.