Skip to main content

ExecutionCommandSource

Trait ExecutionCommandSource 

Source
pub(crate) trait ExecutionCommandSource:
    CommandArgumentSource
    + Sized
    + Send
    + Sync
    + 'static {
    // Required methods
    fn with_callback(&self, callback: CommandResultCallback) -> Self;
    fn callback(&self) -> CommandResultCallback;
    fn handle_error(&self, error: &CommandSyntaxError, forked: bool);

    // Provided method
    fn execution_is_current(&self) -> bool { ... }
}
Expand description

Source behavior required by the Steel command scheduler.

Required Methods§

Provided Methods§

Source

fn execution_is_current(&self) -> bool

Returns whether delayed work may still execute for this exact source.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§