Struct crowdstrike_cloudproto::framing::CloudProtoPacket
source · pub struct CloudProtoPacket {
pub magic: CloudProtoMagic,
pub kind: u8,
pub version: CloudProtoVersion,
pub payload: Vec<u8>,
}Expand description
The common framing packet structure of the protocol
Fields§
§magic: CloudProtoMagicOne magic value corresponds to one backend service
kind: u8Each value can have a different interpretation for each backend service There is no common definition of packet kind at the framing level
version: CloudProtoVersion§payload: Vec<u8>Trait Implementations§
source§impl Clone for CloudProtoPacket
impl Clone for CloudProtoPacket
source§fn clone(&self) -> CloudProtoPacket
fn clone(&self) -> CloudProtoPacket
Returns a copy 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 CloudProtoPacket
impl Debug for CloudProtoPacket
source§impl PartialEq<CloudProtoPacket> for CloudProtoPacket
impl PartialEq<CloudProtoPacket> for CloudProtoPacket
source§fn eq(&self, other: &CloudProtoPacket) -> bool
fn eq(&self, other: &CloudProtoPacket) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<IO> Sink<CloudProtoPacket> for CloudProtoSocket<IO>where
IO: AsyncRead + AsyncWrite,
impl<IO> Sink<CloudProtoPacket> for CloudProtoSocket<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>,
pkt: CloudProtoPacket
) -> Result<(), Self::Error>
fn start_send( self: Pin<&mut Self>, pkt: CloudProtoPacket ) -> 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