pub struct IPrincipal(/* private fields */);Available on crate feature
taskschd only.Expand description
IPrincipal
COM interface.
Automatically calls
Release
when the object goes out of scope.
§Examples
use winsafe::{self as w, prelude::*};
let task: w::ITaskDefinition; // initialized somewhere
let principal = task
.QueryInterface::<w::IPrincipal>()?;Trait Implementations§
Source§impl Clone for IPrincipal
impl Clone for IPrincipal
Source§impl Drop for IPrincipal
impl Drop for IPrincipal
Source§impl ole_IUnknown for IPrincipal
impl ole_IUnknown for IPrincipal
Source§unsafe fn from_ptr(p: *mut c_void) -> Self
unsafe fn from_ptr(p: *mut c_void) -> Self
Available on crate feature
ole only.Creates an object from a COM virtual table pointer. Read more
Source§unsafe fn as_mut(&mut self) -> &mut *mut c_void
unsafe fn as_mut(&mut self) -> &mut *mut c_void
Available on crate feature
ole only.Returns a mutable reference do the underlying COM virtual table pointer. Read more
Source§fn ptr(&self) -> *mut c_void
fn ptr(&self) -> *mut c_void
Available on crate feature
ole only.Returns the pointer to the underlying COM virtual table. Read more
Source§unsafe fn null() -> Self
unsafe fn null() -> Self
Available on crate feature
ole only.Creates an object from a null COM virtual table pointer. Read more
Source§fn QueryInterface<T>(&self) -> HrResult<T>where
T: ole_IUnknown,
fn QueryInterface<T>(&self) -> HrResult<T>where
T: ole_IUnknown,
Available on crate feature
ole only.IUnknown::QueryInterface
method.Source§impl oleaut_IDispatch for IPrincipal
impl oleaut_IDispatch for IPrincipal
Source§fn GetIDsOfNames(
&self,
names: &[impl AsRef<str>],
lcid: LCID,
) -> HrResult<Vec<i32>>
fn GetIDsOfNames( &self, names: &[impl AsRef<str>], lcid: LCID, ) -> HrResult<Vec<i32>>
Available on crate feature
oleaut only.IDispatch::GetIDsOfNames
method.Source§fn GetTypeInfoCount(&self) -> HrResult<u32>
fn GetTypeInfoCount(&self) -> HrResult<u32>
Available on crate feature
oleaut only.IDispatch::GetTypeInfoCount
method.Source§fn GetTypeInfo(&self, info_type: u32, lcid: LCID) -> HrResult<ITypeInfo>
fn GetTypeInfo(&self, info_type: u32, lcid: LCID) -> HrResult<ITypeInfo>
Available on crate feature
oleaut only.IDispatch::GetTypeInfo
method.Source§fn Invoke(
&self,
disp_id_member: i32,
lcid: LCID,
flags: DISPATCH,
disp_params: &mut DISPPARAMS<'_, '_>,
) -> AnyResult<VARIANT>
fn Invoke( &self, disp_id_member: i32, lcid: LCID, flags: DISPATCH, disp_params: &mut DISPPARAMS<'_, '_>, ) -> AnyResult<VARIANT>
Available on crate feature
oleaut only.IDispatch::Invoke
method. Read moreSource§fn invoke_get(
&self,
property_name: &str,
params: &[&Variant],
) -> AnyResult<Variant>
fn invoke_get( &self, property_name: &str, params: &[&Variant], ) -> AnyResult<Variant>
Available on crate feature
oleaut only.Source§fn invoke_method(
&self,
method_name: &str,
params: &[&Variant],
) -> AnyResult<Variant>
fn invoke_method( &self, method_name: &str, params: &[&Variant], ) -> AnyResult<Variant>
Available on crate feature
oleaut only.Source§impl taskschd_IPrincipal for IPrincipal
impl taskschd_IPrincipal for IPrincipal
Source§fn get_RunLevel(&self) -> HrResult<TASK_RUNLEVEL>
fn get_RunLevel(&self) -> HrResult<TASK_RUNLEVEL>
IPrincipal::get_RunLevel
method.Source§fn put_RunLevel(&self, run_level: TASK_RUNLEVEL) -> HrResult<()>
fn put_RunLevel(&self, run_level: TASK_RUNLEVEL) -> HrResult<()>
IPrincipal::put_RunLevel
method.impl Send for IPrincipal
Auto Trait Implementations§
impl Freeze for IPrincipal
impl RefUnwindSafe for IPrincipal
impl !Sync for IPrincipal
impl Unpin for IPrincipal
impl UnwindSafe for IPrincipal
Blanket Implementations§
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