pub enum UpdatesLike {
Updates(Box<Updates>),
ConnectionClosed,
MalformedUpdates,
AffectedMessages(AffectedMessages),
AffectedChannelMessages {
affected: AffectedMessages,
channel_id: i64,
},
SentMessage {
pts: i32,
pts_count: i32,
request_body: Option<Vec<u8>>,
update: Box<UpdateShortSentMessage>,
},
}Expand description
Anything that should be treated as an update batch.
Variants§
Updates(Box<Updates>)
Normal push update from the socket.
ConnectionClosed
The connection was closed; a gap may now exist.
MalformedUpdates
A received update could not be parsed (unknown constructor, truncation).
AffectedMessages(AffectedMessages)
RPC response for messages.deleteMessages / messages.readHistory etc.
AffectedChannelMessages
Same as above but channel-specific.
SentMessage
updateShortSentMessage confirmed; request_body used to reconstruct the outgoing message. If body is None or not a SendMessage, advances pts silently.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UpdatesLike
impl RefUnwindSafe for UpdatesLike
impl Send for UpdatesLike
impl Sync for UpdatesLike
impl Unpin for UpdatesLike
impl UnsafeUnpin for UpdatesLike
impl UnwindSafe for UpdatesLike
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