[][src]Trait opencv::core::AsyncPromiseTrait

pub trait AsyncPromiseTrait {
    fn as_raw_AsyncPromise(&self) -> *const c_void;
fn as_raw_mut_AsyncPromise(&mut self) -> *mut c_void; fn release(&mut self) { ... }
fn get_array_result(&mut self) -> Result<AsyncArray> { ... }
fn set_value(&mut self, value: &dyn ToInputArray) -> Result<()> { ... }
fn set_exception(&mut self, exception: &Exception) -> Result<()> { ... }
fn _get_impl(&self) -> *mut c_void { ... } }

Provides result of asynchronous operations

Required methods

Loading content...

Provided methods

fn release(&mut self)[src]

fn get_array_result(&mut self) -> Result<AsyncArray>[src]

Returns associated AsyncArray

Note: Can be called once

fn set_value(&mut self, value: &dyn ToInputArray) -> Result<()>[src]

Stores asynchronous result.

Parameters

  • value: result

fn set_exception(&mut self, exception: &Exception) -> Result<()>[src]

Stores exception.

Parameters

  • exception: exception to be raised in AsyncArray

fn _get_impl(&self) -> *mut c_void[src]

Loading content...

Implementors

Loading content...