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

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

Provides result of asynchronous operations

Required methods

Loading content...

Provided methods

pub fn release(&mut self)[src]

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

Returns associated AsyncArray

Note: Can be called once

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

Stores asynchronous result.

Parameters

  • value: result

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

Stores exception.

Parameters

  • exception: exception to be raised in AsyncArray

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

Loading content...

Implementors

impl AsyncPromiseTrait for AsyncPromise[src]

Loading content...