pub struct PluginOperations { /* private fields */ }Implementations§
Source§impl PluginOperations
impl PluginOperations
pub async fn query<Op: PluginQuery>(&self, args: Op::Args) -> Result<Op::Output>
pub async fn query_raw( &self, name: &str, args: Value, ) -> Result<(String, Value)>
pub async fn run_command<Op: PluginCommand>( &self, args: Op::Args, ) -> Result<PluginCommandReceipt<Op::Output>>
pub async fn run_command_raw( &self, name: &str, args: Value, ) -> Result<PluginCommandReceipt<Value>>
pub async fn run_task<Op: PluginTask>( &self, args: Op::Args, ) -> Result<PluginTaskReceipt<Op::Output>>
pub async fn run_task_with_cancel<Op: PluginTask>( &self, args: Op::Args, cancellation_token: CancellationToken, ) -> Result<PluginTaskReceipt<Op::Output>>
pub async fn run_task_raw( &self, name: &str, args: Value, ) -> Result<PluginTaskReceipt<Value>>
pub async fn run_task_raw_with_cancel( &self, name: &str, args: Value, cancellation_token: CancellationToken, ) -> Result<PluginTaskReceipt<Value>>
Trait Implementations§
Source§impl Clone for PluginOperations
impl Clone for PluginOperations
Source§fn clone(&self) -> PluginOperations
fn clone(&self) -> PluginOperations
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for PluginOperations
impl !UnwindSafe for PluginOperations
impl Freeze for PluginOperations
impl Send for PluginOperations
impl Sync for PluginOperations
impl Unpin for PluginOperations
impl UnsafeUnpin for PluginOperations
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