pub struct PtsState {
pub pts: i32,
pub qts: i32,
pub date: i32,
pub seq: i32,
}Expand description
Tracks MTProto sequence numbers so we can detect and fill update gaps.
Fields§
§pts: i32Main sequence counter (messages, channels).
qts: i32Secondary counter for secret chats.
date: i32Date of the last known update (Unix timestamp).
seq: i32Combined updates sequence.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PtsState
impl RefUnwindSafe for PtsState
impl Send for PtsState
impl Sync for PtsState
impl Unpin for PtsState
impl UnsafeUnpin for PtsState
impl UnwindSafe for PtsState
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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