pub enum IngestFrame {
Log(LogFrame),
Telemetry(TelemetryFrame),
Event(EventFrame),
Hw(HwSnapshot),
}Expand description
The kind tag on an ingest frame, so the writer can dispatch one stream of mixed frames to the right table.
Variants§
Log(LogFrame)
A log record.
Telemetry(TelemetryFrame)
A telemetry sample.
Event(EventFrame)
A discrete event.
Hw(HwSnapshot)
A hardware snapshot.
Implementations§
Source§impl IngestFrame
impl IngestFrame
Sourcepub fn encode(&self) -> Result<Vec<u8>, LogdError>
pub fn encode(&self) -> Result<Vec<u8>, LogdError>
Encode this frame as a complete length-prefixed msgpack frame ready to write on the ingest socket.
Trait Implementations§
Source§impl Clone for IngestFrame
impl Clone for IngestFrame
Source§impl Debug for IngestFrame
impl Debug for IngestFrame
Source§impl<'de> Deserialize<'de> for IngestFrame
impl<'de> Deserialize<'de> for IngestFrame
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 IngestFrame
impl PartialEq for IngestFrame
Source§impl Serialize for IngestFrame
impl Serialize for IngestFrame
impl StructuralPartialEq for IngestFrame
Auto Trait Implementations§
impl Freeze for IngestFrame
impl RefUnwindSafe for IngestFrame
impl Send for IngestFrame
impl Sync for IngestFrame
impl Unpin for IngestFrame
impl UnsafeUnpin for IngestFrame
impl UnwindSafe for IngestFrame
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