Struct windows::ApplicationModel::Chat::ChatMessageStore
pub struct ChatMessageStore(/* private fields */);
Implementations§
§impl ChatMessageStore
impl ChatMessageStore
pub fn ChangeTracker(&self) -> Result<ChatMessageChangeTracker>
pub fn DeleteMessageAsync( &self, localmessageid: &HSTRING, ) -> Result<IAsyncAction>
pub fn DownloadMessageAsync( &self, localchatmessageid: &HSTRING, ) -> Result<IAsyncAction>
pub fn GetMessageAsync( &self, localchatmessageid: &HSTRING, ) -> Result<IAsyncOperation<ChatMessage>>
pub fn GetMessageReader1(&self) -> Result<ChatMessageReader>
pub fn GetMessageReader2( &self, recenttimelimit: TimeSpan, ) -> Result<ChatMessageReader>
pub fn MarkMessageReadAsync( &self, localchatmessageid: &HSTRING, ) -> Result<IAsyncAction>
pub fn RetrySendMessageAsync( &self, localchatmessageid: &HSTRING, ) -> Result<IAsyncAction>
pub fn SendMessageAsync<P0>(&self, chatmessage: P0) -> Result<IAsyncAction>where
P0: Param<ChatMessage>,
pub fn ValidateMessage<P0>(
&self,
chatmessage: P0,
) -> Result<ChatMessageValidationResult>where
P0: Param<ChatMessage>,
pub fn MessageChanged<P0>(&self, value: P0) -> Result<EventRegistrationToken>
pub fn RemoveMessageChanged(&self, value: EventRegistrationToken) -> Result<()>
pub fn ForwardMessageAsync<P0>(
&self,
localchatmessageid: &HSTRING,
addresses: P0,
) -> Result<IAsyncOperation<ChatMessage>>where
P0: Param<IIterable<HSTRING>>,
pub fn GetConversationAsync( &self, conversationid: &HSTRING, ) -> Result<IAsyncOperation<ChatConversation>>
pub fn GetConversationForTransportsAsync<P0>(
&self,
conversationid: &HSTRING,
transportids: P0,
) -> Result<IAsyncOperation<ChatConversation>>where
P0: Param<IIterable<HSTRING>>,
pub fn GetConversationFromThreadingInfoAsync<P0>(
&self,
threadinginfo: P0,
) -> Result<IAsyncOperation<ChatConversation>>where
P0: Param<ChatConversationThreadingInfo>,
pub fn GetConversationReader(&self) -> Result<ChatConversationReader>
pub fn GetConversationForTransportsReader<P0>(
&self,
transportids: P0,
) -> Result<ChatConversationReader>where
P0: Param<IIterable<HSTRING>>,
pub fn GetMessageByRemoteIdAsync( &self, transportid: &HSTRING, remoteid: &HSTRING, ) -> Result<IAsyncOperation<ChatMessage>>
pub fn GetUnseenCountAsync(&self) -> Result<IAsyncOperation<i32>>
pub fn GetUnseenCountForTransportsReaderAsync<P0>(
&self,
transportids: P0,
) -> Result<IAsyncOperation<i32>>where
P0: Param<IIterable<HSTRING>>,
pub fn MarkAsSeenAsync(&self) -> Result<IAsyncAction>
pub fn MarkAsSeenForTransportsAsync<P0>(
&self,
transportids: P0,
) -> Result<IAsyncAction>where
P0: Param<IIterable<HSTRING>>,
pub fn GetSearchReader<P0>(&self, value: P0) -> Result<ChatSearchReader>where
P0: Param<ChatQueryOptions>,
pub fn SaveMessageAsync<P0>(&self, chatmessage: P0) -> Result<IAsyncAction>where
P0: Param<ChatMessage>,
pub fn TryCancelDownloadMessageAsync( &self, localchatmessageid: &HSTRING, ) -> Result<IAsyncOperation<bool>>
pub fn TryCancelSendMessageAsync( &self, localchatmessageid: &HSTRING, ) -> Result<IAsyncOperation<bool>>
pub fn StoreChanged<P0>(&self, handler: P0) -> Result<EventRegistrationToken>
pub fn RemoveStoreChanged(&self, token: EventRegistrationToken) -> Result<()>
pub fn GetMessageBySyncIdAsync( &self, syncid: &HSTRING, ) -> Result<IAsyncOperation<ChatMessage>>
Trait Implementations§
§impl CanInto<IInspectable> for ChatMessageStore
impl CanInto<IInspectable> for ChatMessageStore
§impl CanInto<IUnknown> for ChatMessageStore
impl CanInto<IUnknown> for ChatMessageStore
§impl Clone for ChatMessageStore
impl Clone for ChatMessageStore
§fn clone(&self) -> ChatMessageStore
fn clone(&self) -> ChatMessageStore
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 ChatMessageStore
impl Debug for ChatMessageStore
§impl From<&ChatMessageStore> for &IInspectable
impl From<&ChatMessageStore> for &IInspectable
§fn from(value: &ChatMessageStore) -> Self
fn from(value: &ChatMessageStore) -> Self
Converts to this type from the input type.
§impl From<&ChatMessageStore> for &IUnknown
impl From<&ChatMessageStore> for &IUnknown
§fn from(value: &ChatMessageStore) -> Self
fn from(value: &ChatMessageStore) -> Self
Converts to this type from the input type.
§impl From<ChatMessageStore> for IInspectable
impl From<ChatMessageStore> for IInspectable
§fn from(value: ChatMessageStore) -> Self
fn from(value: ChatMessageStore) -> Self
Converts to this type from the input type.
§impl From<ChatMessageStore> for IUnknown
impl From<ChatMessageStore> for IUnknown
§fn from(value: ChatMessageStore) -> Self
fn from(value: ChatMessageStore) -> Self
Converts to this type from the input type.
§impl Interface for ChatMessageStore
impl Interface for ChatMessageStore
§const IID: GUID = <IChatMessageStore as windows_core::Interface>::IID
const IID: GUID = <IChatMessageStore as windows_core::Interface>::IID
The
GUID
associated with the interface.§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.
§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 ChatMessageStore
impl PartialEq for ChatMessageStore
§fn eq(&self, other: &ChatMessageStore) -> bool
fn eq(&self, other: &ChatMessageStore) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ChatMessageStore
impl Send for ChatMessageStore
impl StructuralPartialEq for ChatMessageStore
impl Sync for ChatMessageStore
Auto Trait Implementations§
impl Freeze for ChatMessageStore
impl RefUnwindSafe for ChatMessageStore
impl Unpin for ChatMessageStore
impl UnwindSafe for ChatMessageStore
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)