pub struct ControlDrain {
pub commands: Option<Vec<ControlCommandView>>,
pub cursor: Option<i32>,
}Fields§
§commands: Option<Vec<ControlCommandView>>Commands is the session’s control commands newer than the cursor, oldest first.
cursor: Option<i32>Cursor is the seq to send as after on the next poll — the highest seq in this page, or the cursor sent in when the page is empty.
Implementations§
Source§impl ControlDrain
impl ControlDrain
pub fn new() -> ControlDrain
Trait Implementations§
Source§impl Clone for ControlDrain
impl Clone for ControlDrain
Source§fn clone(&self) -> ControlDrain
fn clone(&self) -> ControlDrain
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ControlDrain
impl Debug for ControlDrain
Source§impl Default for ControlDrain
impl Default for ControlDrain
Source§fn default() -> ControlDrain
fn default() -> ControlDrain
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ControlDrain
impl<'de> Deserialize<'de> for ControlDrain
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ControlDrain
impl PartialEq for ControlDrain
Source§impl Serialize for ControlDrain
impl Serialize for ControlDrain
impl StructuralPartialEq for ControlDrain
Auto Trait Implementations§
impl Freeze for ControlDrain
impl RefUnwindSafe for ControlDrain
impl Send for ControlDrain
impl Sync for ControlDrain
impl Unpin for ControlDrain
impl UnsafeUnpin for ControlDrain
impl UnwindSafe for ControlDrain
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