Struct install_framework_core::command::CommandQueue [−][src]
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]
&mut self,
interpreter: &mut TInterpreter
) -> Result<(), TInterpreter::ErrorType>
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 processedcmd
- 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,
TCommand: RefUnwindSafe,
impl<TCommand> Send for CommandQueue<TCommand> where
TCommand: Send,
TCommand: Send,
impl<TCommand> Sync for CommandQueue<TCommand> where
TCommand: Sync,
TCommand: Sync,
impl<TCommand> Unpin for CommandQueue<TCommand> where
TCommand: Unpin,
TCommand: Unpin,
impl<TCommand> UnwindSafe for CommandQueue<TCommand> where
TCommand: UnwindSafe,
TCommand: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,