pub struct QueuedEvent {
pub seq: u64,
pub hostname: String,
pub rollout_id: RolloutId,
pub event_kind: String,
pub created_at: DateTime<Utc>,
pub payload: AgentEvent,
}Expand description
One entry in the on-disk queue. Persisted as JSON via serde.
payload is the typed wire event (RFC-0004 §2 lift: the wire
envelope + AgentEvent live in nixfleet-proto, both sides of the
agent <-> CP boundary import the same types). The outbound worker
wraps each QueuedEvent in an AgentEventEnvelope at POST time.
Fields§
§seq: u64§hostname: String§rollout_id: RolloutId§event_kind: String§created_at: DateTime<Utc>§payload: AgentEventTyped wire event. Same shape both sides verify against.
Trait Implementations§
Source§impl Clone for QueuedEvent
impl Clone for QueuedEvent
Source§fn clone(&self) -> QueuedEvent
fn clone(&self) -> QueuedEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QueuedEvent
impl Debug for QueuedEvent
Source§impl<'de> Deserialize<'de> for QueuedEvent
impl<'de> Deserialize<'de> for QueuedEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for QueuedEvent
impl PartialEq for QueuedEvent
Source§impl Serialize for QueuedEvent
impl Serialize for QueuedEvent
impl StructuralPartialEq for QueuedEvent
Auto Trait Implementations§
impl Freeze for QueuedEvent
impl RefUnwindSafe for QueuedEvent
impl Send for QueuedEvent
impl Sync for QueuedEvent
impl Unpin for QueuedEvent
impl UnwindSafe for QueuedEvent
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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