pub struct IAsyncOperation<TResult>(/* private fields */)
where
TResult: RuntimeType + 'static;
Implementations§
Source§impl<TResult: RuntimeType + 'static> IAsyncOperation<TResult>
impl<TResult: RuntimeType + 'static> IAsyncOperation<TResult>
pub fn SetCompleted<'a, T0__: IntoParam<'a, AsyncOperationCompletedHandler<TResult>>>( &self, handler: T0__, ) -> Result<()>
pub fn Completed(&self) -> Result<AsyncOperationCompletedHandler<TResult>>
pub fn GetResults(&self) -> Result<TResult>
pub fn Id(&self) -> Result<u32>
pub fn Status(&self) -> Result<AsyncStatus>
pub fn ErrorCode(&self) -> Result<ErrorCode>
pub fn Cancel(&self) -> Result<()>
pub fn Close(&self) -> Result<()>
pub fn get(&self) -> Result<TResult>
Trait Implementations§
Source§impl<TResult> Clone for IAsyncOperation<TResult>where
TResult: RuntimeType + 'static + Clone,
impl<TResult> Clone for IAsyncOperation<TResult>where
TResult: RuntimeType + 'static + Clone,
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<TResult> Debug for IAsyncOperation<TResult>where
TResult: RuntimeType + 'static + Debug,
impl<TResult> Debug for IAsyncOperation<TResult>where
TResult: RuntimeType + 'static + Debug,
Source§impl From<&DataReaderLoadOperation> for IAsyncOperation<u32>
impl From<&DataReaderLoadOperation> for IAsyncOperation<u32>
Source§fn from(value: &DataReaderLoadOperation) -> Self
fn from(value: &DataReaderLoadOperation) -> Self
Converts to this type from the input type.
Source§impl From<&DataWriterStoreOperation> for IAsyncOperation<u32>
impl From<&DataWriterStoreOperation> for IAsyncOperation<u32>
Source§fn from(value: &DataWriterStoreOperation) -> Self
fn from(value: &DataWriterStoreOperation) -> Self
Converts to this type from the input type.
Source§impl<TResult: RuntimeType + 'static> From<&IAsyncOperation<TResult>> for IAsyncInfo
impl<TResult: RuntimeType + 'static> From<&IAsyncOperation<TResult>> for IAsyncInfo
Source§fn from(value: &IAsyncOperation<TResult>) -> Self
fn from(value: &IAsyncOperation<TResult>) -> Self
Converts to this type from the input type.
Source§impl<TResult: RuntimeType + 'static> From<&IAsyncOperation<TResult>> for Object
impl<TResult: RuntimeType + 'static> From<&IAsyncOperation<TResult>> for Object
Source§fn from(value: &IAsyncOperation<TResult>) -> Self
fn from(value: &IAsyncOperation<TResult>) -> Self
Converts to this type from the input type.
Source§impl From<DataReaderLoadOperation> for IAsyncOperation<u32>
impl From<DataReaderLoadOperation> for IAsyncOperation<u32>
Source§fn from(value: DataReaderLoadOperation) -> Self
fn from(value: DataReaderLoadOperation) -> Self
Converts to this type from the input type.
Source§impl From<DataWriterStoreOperation> for IAsyncOperation<u32>
impl From<DataWriterStoreOperation> for IAsyncOperation<u32>
Source§fn from(value: DataWriterStoreOperation) -> Self
fn from(value: DataWriterStoreOperation) -> Self
Converts to this type from the input type.
Source§impl<TResult: RuntimeType + 'static> From<IAsyncOperation<TResult>> for IAsyncInfo
impl<TResult: RuntimeType + 'static> From<IAsyncOperation<TResult>> for IAsyncInfo
Source§fn from(value: IAsyncOperation<TResult>) -> Self
fn from(value: IAsyncOperation<TResult>) -> Self
Converts to this type from the input type.
Source§impl<TResult: RuntimeType + 'static> From<IAsyncOperation<TResult>> for Object
impl<TResult: RuntimeType + 'static> From<IAsyncOperation<TResult>> for Object
Source§fn from(value: IAsyncOperation<TResult>) -> Self
fn from(value: IAsyncOperation<TResult>) -> Self
Converts to this type from the input type.
Source§impl<TResult: RuntimeType + 'static> Future for IAsyncOperation<TResult>
impl<TResult: RuntimeType + 'static> Future for IAsyncOperation<TResult>
Source§impl<TResult: RuntimeType + 'static> Interface for IAsyncOperation<TResult>
impl<TResult: RuntimeType + 'static> Interface for IAsyncOperation<TResult>
const IID: Guid
type Vtable = IAsyncOperation_abi<TResult>
Source§impl<'a, TResult: RuntimeType + 'static> IntoParam<'a, IAsyncInfo> for &'a IAsyncOperation<TResult>
impl<'a, TResult: RuntimeType + 'static> IntoParam<'a, IAsyncInfo> for &'a IAsyncOperation<TResult>
fn into_param(self) -> Param<'a, IAsyncInfo>
Source§impl<'a, TResult: RuntimeType + 'static> IntoParam<'a, IAsyncInfo> for IAsyncOperation<TResult>
impl<'a, TResult: RuntimeType + 'static> IntoParam<'a, IAsyncInfo> for IAsyncOperation<TResult>
fn into_param(self) -> Param<'a, IAsyncInfo>
Source§impl<'a> IntoParam<'a, IAsyncOperation<u32>> for &'a DataReaderLoadOperation
impl<'a> IntoParam<'a, IAsyncOperation<u32>> for &'a DataReaderLoadOperation
fn into_param(self) -> Param<'a, IAsyncOperation<u32>>
Source§impl<'a> IntoParam<'a, IAsyncOperation<u32>> for &'a DataWriterStoreOperation
impl<'a> IntoParam<'a, IAsyncOperation<u32>> for &'a DataWriterStoreOperation
fn into_param(self) -> Param<'a, IAsyncOperation<u32>>
Source§impl<'a> IntoParam<'a, IAsyncOperation<u32>> for DataReaderLoadOperation
impl<'a> IntoParam<'a, IAsyncOperation<u32>> for DataReaderLoadOperation
fn into_param(self) -> Param<'a, IAsyncOperation<u32>>
Source§impl<'a> IntoParam<'a, IAsyncOperation<u32>> for DataWriterStoreOperation
impl<'a> IntoParam<'a, IAsyncOperation<u32>> for DataWriterStoreOperation
fn into_param(self) -> Param<'a, IAsyncOperation<u32>>
Source§impl<'a, TResult: RuntimeType + 'static> IntoParam<'a, Object> for &'a IAsyncOperation<TResult>
impl<'a, TResult: RuntimeType + 'static> IntoParam<'a, Object> for &'a IAsyncOperation<TResult>
fn into_param(self) -> Param<'a, Object>
Source§impl<'a, TResult: RuntimeType + 'static> IntoParam<'a, Object> for IAsyncOperation<TResult>
impl<'a, TResult: RuntimeType + 'static> IntoParam<'a, Object> for IAsyncOperation<TResult>
fn into_param(self) -> Param<'a, Object>
Source§impl<TResult> PartialEq for IAsyncOperation<TResult>where
TResult: RuntimeType + 'static + PartialEq,
impl<TResult> PartialEq for IAsyncOperation<TResult>where
TResult: RuntimeType + 'static + PartialEq,
Source§impl<TResult: RuntimeType + 'static> RuntimeType for IAsyncOperation<TResult>
impl<TResult: RuntimeType + 'static> RuntimeType for IAsyncOperation<TResult>
const SIGNATURE: ConstBuffer
type DefaultType = Option<IAsyncOperation<TResult>>
impl<TResult> Eq for IAsyncOperation<TResult>where
TResult: RuntimeType + 'static + Eq,
impl<TResult: RuntimeType + 'static> Send for IAsyncOperation<TResult>
impl<TResult> StructuralPartialEq for IAsyncOperation<TResult>where
TResult: RuntimeType + 'static,
impl<TResult: RuntimeType + 'static> Sync for IAsyncOperation<TResult>
Auto Trait Implementations§
impl<TResult> Freeze for IAsyncOperation<TResult>
impl<TResult> RefUnwindSafe for IAsyncOperation<TResult>where
TResult: RefUnwindSafe,
impl<TResult> Unpin for IAsyncOperation<TResult>where
TResult: Unpin,
impl<TResult> UnwindSafe for IAsyncOperation<TResult>where
TResult: UnwindSafe,
Blanket Implementations§
Source§impl<T> Abi for Twhere
T: Interface,
impl<T> Abi for Twhere
T: Interface,
Source§fn set_abi(&mut self) -> *mut <T as Abi>::Abi
fn set_abi(&mut self) -> *mut <T as Abi>::Abi
Returns a pointer for setting the object’s value via an ABI call.
Source§unsafe fn from_abi(abi: <T as Abi>::Abi) -> Result<T, Error>
unsafe fn from_abi(abi: <T as Abi>::Abi) -> Result<T, Error>
Casts the ABI representation to a Rust object by taking ownership of the bits.
fn drop_param(_: &mut Param<'_, Self>)
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more