Struct install_framework_core::command::CommandQueue[][src]

pub struct CommandQueue<TCommand> { /* fields omitted */ }

Implementations

impl<TCommand> CommandQueue<TCommand>[src]

pub fn new(cur_resource_id: usize) -> CommandQueue<TCommand>[src]

pub fn run<TInterpreter: Interpreter<TCommand>>(
    &mut self,
    interpreter: &mut TInterpreter
) -> Result<(), TInterpreter::ErrorType>
[src]

Execute all commands contained in this command queue with the given interpreter

Arguments

  • interpreter - The command interpreter

pub fn push(&mut self, cmd: TCommand) -> usize[src]

Push a new command into this command queue

Arguments

  • resid - Resource id of the command to be processed
  • cmd - The command to execute

Returns

command resource id to reference the output in subsequent commands

pub fn get_last_resource_id(&self) -> usize[src]

Gets the last resource index

Auto Trait Implementations

impl<TCommand> RefUnwindSafe for CommandQueue<TCommand> where
    TCommand: RefUnwindSafe

impl<TCommand> Send for CommandQueue<TCommand> where
    TCommand: Send

impl<TCommand> Sync for CommandQueue<TCommand> where
    TCommand: Sync

impl<TCommand> Unpin for CommandQueue<TCommand> where
    TCommand: Unpin

impl<TCommand> UnwindSafe for CommandQueue<TCommand> where
    TCommand: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.