pub struct DecryptedMessage {
pub salt: i64,
pub session_id: i64,
pub msg_id: i64,
pub seq_no: i32,
pub body: Vec<u8>,
pub bad_time: bool,
}Expand description
The inner payload extracted from a successfully decrypted server frame.
Fields§
§salt: i64salt sent by the server.
session_id: i64The session_id from the frame.
msg_id: i64The msg_id of the inner message.
seq_no: i32seq_no of the inner message.
body: Vec<u8>TL-serialized body of the inner message.
bad_time: boolSet when the server’s msg_id timestamp fell outside the ±300 s window
- the tDesktop equivalent of
badTime = true.
Instead of rejecting the frame (which causes a reconnect loop on a
clock-drifted machine), we return the frame with this flag set. The
reader corrects time_offset from msg_id and routes the frame
normally - matching tDesktop’s per-handler requestsFixTimeSalt /
correctUnixtimeWithBadLocal self-healing path.
Auto Trait Implementations§
impl Freeze for DecryptedMessage
impl RefUnwindSafe for DecryptedMessage
impl Send for DecryptedMessage
impl Sync for DecryptedMessage
impl Unpin for DecryptedMessage
impl UnsafeUnpin for DecryptedMessage
impl UnwindSafe for DecryptedMessage
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