Trait winsafe::prelude::ole_IMoniker

source ·
pub trait ole_IMoniker: ole_IPersistStream {
Show 15 methods // Provided methods fn BindToObject<T>( &self, bind_ctx: &impl ole_IBindCtx, moniker_to_left: Option<&impl ole_IMoniker> ) -> HrResult<T> where T: ole_IUnknown { ... } fn BindToStorage<T>( &self, bind_ctx: &impl ole_IBindCtx, moniker_to_left: Option<&impl ole_IMoniker> ) -> HrResult<T> where T: ole_IUnknown { ... } fn CommonPrefixWith(&self, other: &impl ole_IMoniker) -> HrResult<IMoniker> { ... } fn ComposeWith( &self, moniker_to_right: &impl ole_IMoniker, only_if_not_generic: bool ) -> HrResult<IMoniker> { ... } fn Enum(&self, forward: bool) -> HrResult<IMoniker> { ... } fn GetDisplayName( &self, bind_ctx: &impl ole_IBindCtx, moniker_to_left: Option<&impl ole_IMoniker> ) -> HrResult<String> { ... } fn GetTimeOfLastChange( &self, bind_ctx: &impl ole_IBindCtx, moniker_to_left: Option<&impl ole_IMoniker> ) -> HrResult<FILETIME> { ... } fn Hash(&self) -> HrResult<u32> { ... } fn Inverse(&self) -> HrResult<IMoniker> { ... } fn IsEqual(&self, other_moniker: &impl ole_IMoniker) -> HrResult<bool> { ... } fn IsRunning( &self, bind_ctx: &impl ole_IBindCtx, moniker_to_left: Option<&impl ole_IMoniker>, moniker_newly_running: Option<&impl ole_IMoniker> ) -> HrResult<bool> { ... } fn IsSystemMoniker(&self) -> HrResult<(bool, MKSYS)> { ... } fn ParseDisplayName( &self, bind_ctx: &impl ole_IBindCtx, moniker_to_left: &impl ole_IMoniker, display_name: &str ) -> HrResult<(u32, IMoniker)> { ... } fn Reduce( &self, bind_ctx: &impl ole_IBindCtx, reduce_how_far: MKRREDUCE ) -> HrResult<(IMoniker, IMoniker)> { ... } fn RelativePathTo( &self, other_moniker: &impl ole_IMoniker ) -> HrResult<IMoniker> { ... }
}
Available on crate features kernel and ole only.
Expand description

This trait is enabled with the ole feature, and provides methods for IMoniker.

Prefer importing this trait through the prelude:

use winsafe::prelude::*;

Provided Methods§

source

fn BindToObject<T>( &self, bind_ctx: &impl ole_IBindCtx, moniker_to_left: Option<&impl ole_IMoniker> ) -> HrResult<T>
where T: ole_IUnknown,

source

fn BindToStorage<T>( &self, bind_ctx: &impl ole_IBindCtx, moniker_to_left: Option<&impl ole_IMoniker> ) -> HrResult<T>
where T: ole_IUnknown,

source

fn CommonPrefixWith(&self, other: &impl ole_IMoniker) -> HrResult<IMoniker>

source

fn ComposeWith( &self, moniker_to_right: &impl ole_IMoniker, only_if_not_generic: bool ) -> HrResult<IMoniker>

source

fn Enum(&self, forward: bool) -> HrResult<IMoniker>

source

fn GetDisplayName( &self, bind_ctx: &impl ole_IBindCtx, moniker_to_left: Option<&impl ole_IMoniker> ) -> HrResult<String>

source

fn GetTimeOfLastChange( &self, bind_ctx: &impl ole_IBindCtx, moniker_to_left: Option<&impl ole_IMoniker> ) -> HrResult<FILETIME>

source

fn Hash(&self) -> HrResult<u32>

source

fn Inverse(&self) -> HrResult<IMoniker>

source

fn IsEqual(&self, other_moniker: &impl ole_IMoniker) -> HrResult<bool>

source

fn IsRunning( &self, bind_ctx: &impl ole_IBindCtx, moniker_to_left: Option<&impl ole_IMoniker>, moniker_newly_running: Option<&impl ole_IMoniker> ) -> HrResult<bool>

source

fn IsSystemMoniker(&self) -> HrResult<(bool, MKSYS)>

source

fn ParseDisplayName( &self, bind_ctx: &impl ole_IBindCtx, moniker_to_left: &impl ole_IMoniker, display_name: &str ) -> HrResult<(u32, IMoniker)>

source

fn Reduce( &self, bind_ctx: &impl ole_IBindCtx, reduce_how_far: MKRREDUCE ) -> HrResult<(IMoniker, IMoniker)>

IMoniker::Reduce method.

Returns the moniker to the left, and the reduced moniker, respectively.

source

fn RelativePathTo( &self, other_moniker: &impl ole_IMoniker ) -> HrResult<IMoniker>

Object Safety§

This trait is not object safe.

Implementors§