pub struct TapMessage {Show 13 fields
pub ident: TapIdent,
pub subject: String,
pub size: u64,
pub outcome: TapOutcome,
pub seen_at: Instant,
pub source: TapSource,
pub station: Option<Arc<str>>,
pub to_stations: Option<Arc<[Reached]>>,
pub hops: Vec<Hop>,
pub reply_to: Option<String>,
pub held: bool,
pub payload: Option<Vec<u8>>,
pub call: Option<CallDetails>,
}Expand description
The per-message facts a tap keeps.
Fields§
§ident: TapIdentIts id.
subject: StringThe subject (channel name).
size: u64Payload size in bytes.
outcome: TapOutcomeWhat became of it.
seen_at: InstantWhen the server first saw it, on the monotonic clock; the record’s wall time is the tap’s wall base plus the elapsed time to here.
source: TapSourceWho published it.
station: Option<Arc<str>>The station that published it: the registered worker identity of
the publishing connection, shared rather than copied. None for a
connection that is not a registered worker, and for the server. An embedded
host carries its named publisher identity here.
to_stations: Option<Arc<[Reached]>>The stations that received it: each registered worker whose
subscription’s inbox queued the message, once, in the fan-out’s order,
shared by every tap that kept it: empty when the recorded fan-out
reached no registered worker. None when its recipients were not
recorded, so whom it reached is not known.
hops: Vec<Hop>Where it went, in order.
reply_to: Option<String>The id of the message it answers, when it has one.
held: boolHeld by a rule. Always false until rules (R4) exist.
payload: Option<Vec<u8>>The payload, only on a subscription carrying a PayloadGrant.
call: Option<CallDetails>Terminal call facts; absent on a channel publish.
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
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<'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
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.