pub struct TapMessage {Show 13 fields
pub id: String,
pub subject: String,
pub size: u64,
pub outcome: Outcome,
pub t: u64,
pub from: String,
pub from_station: Option<String>,
pub to: String,
pub to_stations: Option<Vec<String>>,
pub hops: Vec<Hop>,
pub reply_to: Option<String>,
pub held: bool,
pub diverted: Option<String>,
}Expand description
The facts a tap carries about one message. Payloads never ride here.
Fields§
§id: String<device>:<message id> when admitted, <device>:x<observation>
otherwise.
subject: StringThe subject (channel name).
size: u64Payload size in bytes.
outcome: OutcomeWhat became of it.
t: u64Wall time it was first seen, in milliseconds since the epoch.
from: StringThe publishing connection’s id, or liminal.<device> for the server.
from_station: Option<String>The station that published it: the registered worker identity of the publishing connection. Absent when that connection is not a registered worker, and for the server’s own records.
to: StringThis device’s id.
to_stations: Option<Vec<String>>The stations that received it: each registered worker whose
subscription’s inbox on this device queued the message, once, in
delivery order. A subscriber whose inbox refused it is not here; nor is
one that is no registered worker (it is counted in the outcome, never
named), nor a receiver on another device. [] when the fan-out was
recorded and reached no registered worker here; absent when it was not
recorded (a tap went live while the publish ran, or the tap could not
lend it a buffer), so a reader shows its receivers as not known rather
than as none.
hops: Vec<Hop>Where it went, in order.
reply_to: Option<String>The id of the message it answers (its causal parent), when it has one.
held: boolHeld by a rule. Rules do not exist yet, so always false.
diverted: Option<String>Where a rule diverted it. Rules do not exist yet, so always absent.
Trait Implementations§
Source§impl Clone for TapMessage
impl Clone for TapMessage
Source§impl Debug for TapMessage
impl Debug for TapMessage
impl Eq for TapMessage
Source§impl PartialEq for TapMessage
impl PartialEq for TapMessage
Source§impl Serialize for TapMessage
impl Serialize for TapMessage
impl StructuralPartialEq for TapMessage
Auto Trait Implementations§
impl Freeze for TapMessage
impl RefUnwindSafe for TapMessage
impl Send for TapMessage
impl Sync for TapMessage
impl Unpin for TapMessage
impl UnsafeUnpin for TapMessage
impl UnwindSafe for TapMessage
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
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
key and return true if they are equal.