pub enum UpdateState {
All(UpdatesState),
Primary {
pts: i32,
date: i32,
seq: i32,
},
Secondary {
qts: i32,
},
Channel {
id: i64,
pts: i32,
},
}Expand description
Used in crate::Session::set_update_state to update parts of the overall UpdatesState.
Variants§
All(UpdatesState)
Updates the entirety of the state.
Primary
Updates only what’s known as the “primary” state of the account.
Fields
§
pts: i32New UpdatesState::pts value.
§
date: i32New UpdatesState::date value.
§
seq: i32New UpdatesState::seq value.
Secondary
Updates only what’s known as the “secondary” state of the account.
Fields
§
qts: i32New UpdatesState::qts value.
Channel
Updates the state of a single channel.
Auto Trait Implementations§
impl Freeze for UpdateState
impl RefUnwindSafe for UpdateState
impl Send for UpdateState
impl Sync for UpdateState
impl Unpin for UpdateState
impl UnwindSafe for UpdateState
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