Enum crowdstrike_cloudproto::services::ts::TsPacketKind
source · #[repr(u8)]
pub enum TsPacketKind {
Connect,
ConnectionEstablished,
Event,
Ack,
Other(u8),
}Expand description
Besides transporting events, the TS sub-protocol has handshake packets and an ACK mechanism
Variants§
Connect
First packet from client to server
ConnectionEstablished
First reply from server to client
Event
Application data is carried with this packet kind Usually contains Event messages with a tx id (for ACKs) and other fields depending on the event’s Protobuf schema.
Ack
CloudProto is normally carried over TLS, but can still use an ACK mechanism. In practice the official client largely ignores ACKs, and we try to follow its behavior.
Other(u8)
This escape hatch is provided with no warranty including fitness for a particular purpose. Good luck!
Implementations§
source§impl TsPacketKind
impl TsPacketKind
Trait Implementations§
source§impl Clone for TsPacketKind
impl Clone for TsPacketKind
source§fn clone(&self) -> TsPacketKind
fn clone(&self) -> TsPacketKind
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 TsPacketKind
impl Debug for TsPacketKind
source§impl Display for TsPacketKind
impl Display for TsPacketKind
source§impl From<&TsPacketKind> for u8
impl From<&TsPacketKind> for u8
source§fn from(pkt: &TsPacketKind) -> Self
fn from(pkt: &TsPacketKind) -> Self
Converts to this type from the input type.
source§impl From<TsPacketKind> for u8
impl From<TsPacketKind> for u8
source§fn from(kind: TsPacketKind) -> Self
fn from(kind: TsPacketKind) -> Self
Converts to this type from the input type.
source§impl From<u8> for TsPacketKind
impl From<u8> for TsPacketKind
source§impl LowerHex for TsPacketKind
impl LowerHex for TsPacketKind
source§impl PartialEq<TsPacketKind> for TsPacketKind
impl PartialEq<TsPacketKind> for TsPacketKind
source§fn eq(&self, other: &TsPacketKind) -> bool
fn eq(&self, other: &TsPacketKind) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<TsPacketKind> for u8
impl PartialEq<TsPacketKind> for u8
source§fn eq(&self, other: &TsPacketKind) -> bool
fn eq(&self, other: &TsPacketKind) -> bool
This method tests for
self and other values to be equal, and is used
by ==.