Struct crowdstrike_cloudproto::services::ts::Event
source · pub struct Event {
pub raw_event_id: u32,
pub event_id: Option<EventId>,
pub data: Vec<u8>,
}
Expand description
The data
field usually contains a serialized Protobuf structure.
The Protobuf schema of the data
depends entirely on raw_event_id
,
and this crate does not provide deserialization for specific events.
A few event IDs do not correspond to protobuf data at all, using a variety of other simple binary formats.
The event_id
field is None
for values of raw_event_id
that are not in the EventId
enum.
Fields§
§raw_event_id: u32
§event_id: Option<EventId>
§data: Vec<u8>
Implementations§
Trait Implementations§
source§impl PartialEq<Event> for Event
impl PartialEq<Event> for Event
source§impl<IO> Sink<Event> for TsEventSocket<IO>where
IO: AsyncRead + AsyncWrite,
impl<IO> Sink<Event> for TsEventSocket<IO>where IO: AsyncRead + AsyncWrite,
source§fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_> ) -> Poll<Result<(), Self::Error>>
Attempts to prepare the
Sink
to receive a value. Read moresource§fn start_send(self: Pin<&mut Self>, ev: Event) -> Result<(), Self::Error>
fn start_send(self: Pin<&mut Self>, ev: Event) -> Result<(), Self::Error>
Begin the process of sending a value to the sink.
Each call to this function must be preceded by a successful call to
poll_ready
which returned Poll::Ready(Ok(()))
. Read more