[−][src]Struct opencv::core::AsyncArray
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.
Methods
impl AsyncArray
[src]
pub fn as_raw_AsyncArray(&self) -> *mut c_void
[src]
pub unsafe fn from_raw_ptr(ptr: *mut c_void) -> Self
[src]
impl AsyncArray
[src]
pub fn default() -> Result<AsyncArray>
[src]
pub fn copy(o: &AsyncArray) -> Result<AsyncArray>
[src]
pub fn release(&mut self) -> Result<()>
[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]
&self,
dst: &mut dyn ToOutputArray,
timeout_ns: i64
) -> Result<bool>
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]
&self,
dst: &mut dyn ToOutputArray,
timeout_ns: f64
) -> Result<bool>
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) -> Result<bool>
[src]
Trait Implementations
Auto Trait Implementations
impl !Sync for AsyncArray
impl Unpin for AsyncArray
impl UnwindSafe for AsyncArray
impl RefUnwindSafe for AsyncArray
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,