Struct winsafe::ITaskService
source · pub struct ITaskService(/* private fields */);
Available on crate feature
taskschd
only.Expand description
ITaskService
COM interface over ITaskServiceVT
.
Automatically calls
Release
when the object goes out of scope.
§Examples
use winsafe::{self as w, prelude::*, co};
let obj = w::CoCreateInstance::<w::ITaskService>(
&co::CLSID::TaskScheduler,
None,
co::CLSCTX::INPROC_SERVER,
)?;
Trait Implementations§
source§impl Clone for ITaskService
impl Clone for ITaskService
source§impl Drop for ITaskService
impl Drop for ITaskService
source§impl ole_IUnknown for ITaskService
impl ole_IUnknown for ITaskService
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 ITaskService
impl oleaut_IDispatch for ITaskService
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§impl taskschd_ITaskService for ITaskService
impl taskschd_ITaskService for ITaskService
source§fn Connect(
&self,
server_name: Option<&str>,
user: Option<&str>,
domain: Option<&str>,
password: Option<&str>
) -> HrResult<()>
fn Connect( &self, server_name: Option<&str>, user: Option<&str>, domain: Option<&str>, password: Option<&str> ) -> HrResult<()>
ITaskService::Connect
method.source§fn get_Connected(&self) -> HrResult<bool>
fn get_Connected(&self) -> HrResult<bool>
ITaskService::get_Connected
method.source§fn get_ConnectedDomain(&self) -> HrResult<String>
fn get_ConnectedDomain(&self) -> HrResult<String>
source§fn get_ConnectedUser(&self) -> HrResult<String>
fn get_ConnectedUser(&self) -> HrResult<String>
ITaskService::get_ConnectedUser
method.source§fn get_HighestVersion(&self) -> HrResult<u32>
fn get_HighestVersion(&self) -> HrResult<u32>
ITaskService::get_HighestVersion
method.source§fn get_TargetServer(&self) -> HrResult<String>
fn get_TargetServer(&self) -> HrResult<String>
ITaskService::get_TargetServer
method.source§fn GetFolder(&self, path: &str) -> HrResult<ITaskFolder>
fn GetFolder(&self, path: &str) -> HrResult<ITaskFolder>
ITaskService::GetFolder
method.source§fn NewTask(&self) -> HrResult<ITaskDefinition>
fn NewTask(&self) -> HrResult<ITaskDefinition>
ITaskService::NewTask
method.impl Send for ITaskService
Auto Trait Implementations§
impl Freeze for ITaskService
impl RefUnwindSafe for ITaskService
impl !Sync for ITaskService
impl Unpin for ITaskService
impl UnwindSafe for ITaskService
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