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<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 moreimpl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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