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: CloudProtoVersionpayload: Vec<u8>Trait Implementations
sourceimpl Clone for CloudProtoPacket
impl Clone for CloudProtoPacket
sourcefn clone(&self) -> CloudProtoPacket
fn clone(&self) -> CloudProtoPacket
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for CloudProtoPacket
impl Debug for CloudProtoPacket
sourceimpl PartialEq<CloudProtoPacket> for CloudProtoPacket
impl PartialEq<CloudProtoPacket> for CloudProtoPacket
sourcefn 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 ==. Read more
sourceimpl<IO> Sink<CloudProtoPacket> for CloudProtoSocket<IO> where
IO: AsyncRead + AsyncWrite,
impl<IO> Sink<CloudProtoPacket> for CloudProtoSocket<IO> where
IO: AsyncRead + AsyncWrite,
sourcefn 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 more
sourcefn 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
sourceimpl TryFrom<CloudProtoPacket> for LfoResponse
impl TryFrom<CloudProtoPacket> for LfoResponse
impl Eq for CloudProtoPacket
impl StructuralEq for CloudProtoPacket
impl StructuralPartialEq for CloudProtoPacket
Auto Trait Implementations
impl RefUnwindSafe for CloudProtoPacket
impl Send for CloudProtoPacket
impl Sync for CloudProtoPacket
impl Unpin for CloudProtoPacket
impl UnwindSafe for CloudProtoPacket
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more