Struct ITsSbResourcePluginStore
pub struct ITsSbResourcePluginStore(/* private fields */);
Implementations§
§impl ITsSbResourcePluginStore
impl ITsSbResourcePluginStore
pub unsafe fn QueryTarget( &self, targetname: &BSTR, farmname: &BSTR, ) -> Result<ITsSbTarget>
pub unsafe fn QuerySessionBySessionId( &self, dwsessionid: u32, targetname: &BSTR, ) -> Result<ITsSbSession>
pub unsafe fn AddTargetToStore<P0>(&self, ptarget: P0) -> Result<()>where
P0: Param<ITsSbTarget>,
pub unsafe fn AddSessionToStore<P0>(&self, psession: P0) -> Result<()>where
P0: Param<ITsSbSession>,
pub unsafe fn AddEnvironmentToStore<P0>(&self, penvironment: P0) -> Result<()>where
P0: Param<ITsSbEnvironment>,
pub unsafe fn RemoveEnvironmentFromStore( &self, environmentname: &BSTR, bignoreowner: bool, ) -> Result<()>
pub unsafe fn EnumerateFarms( &self, pdwcount: *mut u32, pval: *mut *mut SAFEARRAY, ) -> Result<()>
pub unsafe fn QueryEnvironment( &self, environmentname: &BSTR, ) -> Result<ITsSbEnvironment>
pub unsafe fn EnumerateEnvironments( &self, pdwcount: *mut u32, pval: *mut *mut Option<ITsSbEnvironment>, ) -> Result<()>
pub unsafe fn SaveTarget<P0>(
&self,
ptarget: P0,
bforcewrite: bool,
) -> Result<()>where
P0: Param<ITsSbTarget>,
pub unsafe fn SaveEnvironment<P0>(
&self,
penvironment: P0,
bforcewrite: bool,
) -> Result<()>where
P0: Param<ITsSbEnvironment>,
pub unsafe fn SaveSession<P0>(&self, psession: P0) -> Result<()>where
P0: Param<ITsSbSession>,
pub unsafe fn SetTargetProperty( &self, targetname: &BSTR, propertyname: &BSTR, pproperty: *const VARIANT, ) -> Result<()>
pub unsafe fn SetEnvironmentProperty( &self, environmentname: &BSTR, propertyname: &BSTR, pproperty: *const VARIANT, ) -> Result<()>
pub unsafe fn SetTargetState( &self, targetname: &BSTR, newstate: TARGET_STATE, ) -> Result<TARGET_STATE>
pub unsafe fn SetSessionState<P0>(&self, sbsession: P0) -> Result<()>where
P0: Param<ITsSbSession>,
pub unsafe fn EnumerateTargets( &self, farmname: &BSTR, envname: &BSTR, sortbyfieldid: TS_SB_SORT_BY, sortybypropname: &BSTR, pdwcount: *mut u32, pval: *mut *mut Option<ITsSbTarget>, ) -> Result<()>
pub unsafe fn EnumerateSessions( &self, targetname: &BSTR, username: &BSTR, userdomain: &BSTR, poolname: &BSTR, initialprogram: &BSTR, psessionstate: *const TSSESSION_STATE, pdwcount: *mut u32, ppval: *mut *mut Option<ITsSbSession>, ) -> Result<()>
pub unsafe fn GetFarmProperty( &self, farmname: &BSTR, propertyname: &BSTR, pvarvalue: *const VARIANT, ) -> Result<()>
pub unsafe fn DeleteTarget( &self, targetname: &BSTR, hostname: &BSTR, ) -> Result<()>
pub unsafe fn SetTargetPropertyWithVersionCheck<P0>(
&self,
ptarget: P0,
propertyname: &BSTR,
pproperty: *const VARIANT,
) -> Result<()>where
P0: Param<ITsSbTarget>,
pub unsafe fn SetEnvironmentPropertyWithVersionCheck<P0>(
&self,
penvironment: P0,
propertyname: &BSTR,
pproperty: *const VARIANT,
) -> Result<()>where
P0: Param<ITsSbEnvironment>,
pub unsafe fn AcquireTargetLock( &self, targetname: &BSTR, dwtimeout: u32, ) -> Result<IUnknown>
pub unsafe fn ReleaseTargetLock<P0>(&self, pcontext: P0) -> Result<()>where
P0: Param<IUnknown>,
pub unsafe fn TestAndSetServerState( &self, poolname: &BSTR, serverfqdn: &BSTR, newstate: TARGET_STATE, teststate: TARGET_STATE, ) -> Result<TARGET_STATE>
pub unsafe fn SetServerWaitingToStart( &self, poolname: &BSTR, servername: &BSTR, ) -> Result<()>
pub unsafe fn GetServerState( &self, poolname: &BSTR, serverfqdn: &BSTR, ) -> Result<TARGET_STATE>
pub unsafe fn SetServerDrainMode( &self, serverfqdn: &BSTR, drainmode: u32, ) -> Result<()>
Trait Implementations§
§impl CanInto<IUnknown> for ITsSbResourcePluginStore
impl CanInto<IUnknown> for ITsSbResourcePluginStore
§impl Clone for ITsSbResourcePluginStore
impl Clone for ITsSbResourcePluginStore
§fn clone(&self) -> ITsSbResourcePluginStore
fn clone(&self) -> ITsSbResourcePluginStore
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for ITsSbResourcePluginStore
impl Debug for ITsSbResourcePluginStore
§impl From<&ITsSbResourcePluginStore> for &IUnknown
impl From<&ITsSbResourcePluginStore> for &IUnknown
§fn from(value: &ITsSbResourcePluginStore) -> Self
fn from(value: &ITsSbResourcePluginStore) -> Self
Converts to this type from the input type.
§impl From<ITsSbResourcePluginStore> for IUnknown
impl From<ITsSbResourcePluginStore> for IUnknown
§fn from(value: ITsSbResourcePluginStore) -> Self
fn from(value: ITsSbResourcePluginStore) -> Self
Converts to this type from the input type.
§impl Interface for ITsSbResourcePluginStore
impl Interface for ITsSbResourcePluginStore
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for ITsSbResourcePluginStore
impl PartialEq for ITsSbResourcePluginStore
impl Eq for ITsSbResourcePluginStore
impl StructuralPartialEq for ITsSbResourcePluginStore
Auto Trait Implementations§
impl Freeze for ITsSbResourcePluginStore
impl RefUnwindSafe for ITsSbResourcePluginStore
impl !Send for ITsSbResourcePluginStore
impl !Sync for ITsSbResourcePluginStore
impl Unpin for ITsSbResourcePluginStore
impl UnwindSafe for ITsSbResourcePluginStore
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