pub struct FleetEvent { /* private fields */ }Expand description
Product-neutral fleet lifecycle event.
Implementations§
Source§impl FleetEvent
impl FleetEvent
Sourcepub const fn new(kind: FleetEventKind, occurred_at: Timestamp) -> Self
pub const fn new(kind: FleetEventKind, occurred_at: Timestamp) -> Self
Creates a fleet event.
Sourcepub fn with_host(self, host: &HostRecord) -> Self
pub fn with_host(self, host: &HostRecord) -> Self
Binds the event to one host and topology revision.
Sourcepub fn with_detail(self, detail: impl Into<String>) -> FleetResult<Self>
pub fn with_detail(self, detail: impl Into<String>) -> FleetResult<Self>
Adds bounded human-readable detail.
Sourcepub const fn kind(&self) -> FleetEventKind
pub const fn kind(&self) -> FleetEventKind
Returns the event kind.
Sourcepub fn revision(&self) -> Option<&TopologyRevision>
pub fn revision(&self) -> Option<&TopologyRevision>
Returns the optional topology revision.
Sourcepub const fn occurred_at(&self) -> Timestamp
pub const fn occurred_at(&self) -> Timestamp
Returns event time.
Trait Implementations§
Source§impl Clone for FleetEvent
impl Clone for FleetEvent
Source§fn clone(&self) -> FleetEvent
fn clone(&self) -> FleetEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FleetEvent
impl Debug for FleetEvent
Source§impl<'de> Deserialize<'de> for FleetEvent
impl<'de> Deserialize<'de> for FleetEvent
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 FleetEvent
impl PartialEq for FleetEvent
Source§fn eq(&self, other: &FleetEvent) -> bool
fn eq(&self, other: &FleetEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FleetEvent
impl Serialize for FleetEvent
impl Eq for FleetEvent
impl StructuralPartialEq for FleetEvent
Auto Trait Implementations§
impl Freeze for FleetEvent
impl RefUnwindSafe for FleetEvent
impl Send for FleetEvent
impl Sync for FleetEvent
impl Unpin for FleetEvent
impl UnsafeUnpin for FleetEvent
impl UnwindSafe for FleetEvent
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.