pub enum KalshiWsEvent {
Ready {
generation: u64,
},
Message {
generation: u64,
message: KalshiWsMessage,
},
Error {
generation: u64,
message: String,
},
BookSequenceGap {
generation: u64,
sid: u64,
},
BookSnapshotRequested {
generation: u64,
sid: u64,
id: u64,
attempt: u64,
},
}Expand description
Events from one authenticated protocol generation.
Variants§
Ready
All retained subscription intent has authoritative confirmation.
Message
A decoded frame whose subscription belongs to this generation.
Error
A sanitized protocol, command, or transport failure.
BookSequenceGap
A sequence gap on a book subscription; every book on sid needs a snapshot.
BookSnapshotRequested
A managed snapshot write completed on the current connection, before its replies are forwarded.
Trait Implementations§
Source§impl Clone for KalshiWsEvent
impl Clone for KalshiWsEvent
Source§impl Debug for KalshiWsEvent
impl Debug for KalshiWsEvent
Source§impl PartialEq for KalshiWsEvent
impl PartialEq for KalshiWsEvent
impl StructuralPartialEq for KalshiWsEvent
Auto Trait Implementations§
impl Freeze for KalshiWsEvent
impl RefUnwindSafe for KalshiWsEvent
impl Send for KalshiWsEvent
impl Sync for KalshiWsEvent
impl Unpin for KalshiWsEvent
impl UnsafeUnpin for KalshiWsEvent
impl UnwindSafe for KalshiWsEvent
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more