AppCmdListObj

Trait AppCmdListObj 

Source
pub trait AppCmdListObj {
    // Required methods
    fn create(owner: ObjectId, id: &str) -> Self;
    fn push_back(&mut self, cmd: AppCmd, retry_count: u32);
    fn push_front(&mut self, cmd: AppCmd, retry_count: u32);
    fn pop_front(&mut self) -> Option<AppCmdListItem>;
    fn front(&self) -> Option<&AppCmdListItem>;
    fn clear(&mut self);
    fn size(&self) -> usize;
    fn id(&self) -> &str;
    fn list(&self) -> &VecDeque<AppCmdListItem>;
    fn output(&self) -> String;
}

Required Methods§

Source

fn create(owner: ObjectId, id: &str) -> Self

Source

fn push_back(&mut self, cmd: AppCmd, retry_count: u32)

Source

fn push_front(&mut self, cmd: AppCmd, retry_count: u32)

Source

fn pop_front(&mut self) -> Option<AppCmdListItem>

Source

fn front(&self) -> Option<&AppCmdListItem>

Source

fn clear(&mut self)

Source

fn size(&self) -> usize

Source

fn id(&self) -> &str

Source

fn list(&self) -> &VecDeque<AppCmdListItem>

Source

fn output(&self) -> String

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§