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
sourceimpl TsPacketKind
impl TsPacketKind
Trait Implementations
sourceimpl Clone for TsPacketKind
impl Clone for TsPacketKind
sourcefn clone(&self) -> TsPacketKind
fn clone(&self) -> TsPacketKind
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 TsPacketKind
impl Debug for TsPacketKind
sourceimpl Display for TsPacketKind
impl Display for TsPacketKind
sourceimpl From<&TsPacketKind> for u8
impl From<&TsPacketKind> for u8
sourcefn from(pkt: &TsPacketKind) -> Self
fn from(pkt: &TsPacketKind) -> Self
Converts to this type from the input type.
sourceimpl From<TsPacketKind> for u8
impl From<TsPacketKind> for u8
sourcefn from(kind: TsPacketKind) -> Self
fn from(kind: TsPacketKind) -> Self
Converts to this type from the input type.
sourceimpl From<u8> for TsPacketKind
impl From<u8> for TsPacketKind
sourceimpl LowerHex for TsPacketKind
impl LowerHex for TsPacketKind
sourceimpl PartialEq<TsPacketKind> for TsPacketKind
impl PartialEq<TsPacketKind> for TsPacketKind
sourcefn 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 ==. Read more
sourceimpl PartialEq<TsPacketKind> for u8
impl PartialEq<TsPacketKind> for u8
sourcefn 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 ==. Read more
sourceimpl PartialEq<u8> for TsPacketKind
impl PartialEq<u8> for TsPacketKind
sourceimpl UpperHex for TsPacketKind
impl UpperHex for TsPacketKind
impl Copy for TsPacketKind
impl Eq for TsPacketKind
impl StructuralEq for TsPacketKind
impl StructuralPartialEq for TsPacketKind
Auto Trait Implementations
impl RefUnwindSafe for TsPacketKind
impl Send for TsPacketKind
impl Sync for TsPacketKind
impl Unpin for TsPacketKind
impl UnwindSafe for TsPacketKind
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