[][src]Trait opencv::prelude::AsyncArrayTrait

pub trait AsyncArrayTrait {
    pub fn as_raw_AsyncArray(&self) -> *const c_void;
pub fn as_raw_mut_AsyncArray(&mut self) -> *mut c_void; pub fn release(&mut self) { ... }
pub fn get(&self, dst: &mut dyn ToOutputArray) -> Result<()> { ... }
pub fn get_with_timeout(
        &self,
        dst: &mut dyn ToOutputArray,
        timeout_ns: i64
    ) -> Result<bool> { ... }
pub fn get_with_timeout_f64(
        &self,
        dst: &mut dyn ToOutputArray,
        timeout_ns: f64
    ) -> Result<bool> { ... }
pub fn wait_for(&self, timeout_ns: i64) -> Result<bool> { ... }
pub fn wait_for_f64(&self, timeout_ns: f64) -> Result<bool> { ... }
pub fn valid(&self) -> bool { ... } }

Returns result of asynchronous operations

Object has attached asynchronous state. Assignment operator doesn't clone asynchronous state (it is shared between all instances).

Result can be fetched via get() method only once.

Required methods

Loading content...

Provided methods

pub fn release(&mut self)[src]

pub fn get(&self, dst: &mut dyn ToOutputArray) -> Result<()>[src]

Fetch the result.

Parameters

  • dst:[out] destination array

Waits for result until container has valid result. Throws exception if exception was stored as a result.

Throws exception on invalid container state.

Note: Result or stored exception can be fetched only once.

pub fn get_with_timeout(
    &self,
    dst: &mut dyn ToOutputArray,
    timeout_ns: i64
) -> Result<bool>
[src]

Retrieving the result with timeout

Parameters

  • dst:[out] destination array
  • timeoutNs: timeout in nanoseconds, -1 for infinite wait

Returns

true if result is ready, false if the timeout has expired

Note: Result or stored exception can be fetched only once.

pub fn get_with_timeout_f64(
    &self,
    dst: &mut dyn ToOutputArray,
    timeout_ns: f64
) -> Result<bool>
[src]

pub fn wait_for(&self, timeout_ns: i64) -> Result<bool>[src]

pub fn wait_for_f64(&self, timeout_ns: f64) -> Result<bool>[src]

pub fn valid(&self) -> bool[src]

Loading content...

Implementors

impl AsyncArrayTrait for AsyncArray[src]

Loading content...