Skip to main content

MessageService

Struct MessageService 

Source
pub struct MessageService<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> MessageService<'a>

Source

pub fn send(&self, request: SendMessageRequest) -> ImResult<SendMessageResult>

Source

pub async fn send_async( &self, request: SendMessageRequest, ) -> ImResult<SendMessageResult>

Source

pub async fn send_conversation_text_async( &self, request: SendConversationTextRequest, ) -> ImResult<SendMessageResult>

Source

pub async fn send_conversation_payload_async( &self, request: SendConversationPayloadRequest, ) -> ImResult<SendMessageResult>

Source

pub fn inbox(&self, query: InboxQuery) -> ImResult<Page<Message>>

Source

pub async fn inbox_async(&self, query: InboxQuery) -> ImResult<Page<Message>>

Source

pub fn inbox_with_metadata(&self, query: InboxQuery) -> ImResult<MessagePage>

Source

pub async fn inbox_with_metadata_async( &self, query: InboxQuery, ) -> ImResult<MessagePage>

Source

pub fn history( &self, thread: ThreadRef, query: HistoryQuery, ) -> ImResult<Page<Message>>

Source

pub async fn history_async( &self, thread: ThreadRef, query: HistoryQuery, ) -> ImResult<Page<Message>>

Source

pub fn history_with_metadata( &self, thread: ThreadRef, query: HistoryQuery, ) -> ImResult<MessagePage>

Source

pub async fn history_with_metadata_async( &self, thread: ThreadRef, query: HistoryQuery, ) -> ImResult<MessagePage>

Source

pub fn local_history( &self, thread: ThreadRef, query: LocalHistoryQuery, ) -> ImResult<Page<Message>>

Source

pub async fn local_history_async( &self, thread: ThreadRef, query: LocalHistoryQuery, ) -> ImResult<Page<Message>>

Source

pub fn local_history_with_metadata( &self, thread: ThreadRef, query: LocalHistoryQuery, ) -> ImResult<MessagePage>

Source

pub async fn local_history_with_metadata_async( &self, thread: ThreadRef, query: LocalHistoryQuery, ) -> ImResult<MessagePage>

Source

pub fn local_conversation_timeline( &self, conversation: ConversationReadRef, query: LocalHistoryQuery, ) -> ImResult<Page<Message>>

Source

pub async fn local_conversation_timeline_async( &self, conversation: ConversationReadRef, query: LocalHistoryQuery, ) -> ImResult<Page<Message>>

Source

pub fn local_conversation_timeline_with_metadata( &self, conversation: ConversationReadRef, query: LocalHistoryQuery, ) -> ImResult<MessagePage>

Source

pub async fn local_conversation_timeline_with_metadata_async( &self, conversation: ConversationReadRef, query: LocalHistoryQuery, ) -> ImResult<MessagePage>

Source

pub fn mark_read(&self, ids: Vec<MessageId>) -> ImResult<MarkReadResult>

Source

pub async fn mark_read_async( &self, ids: Vec<MessageId>, ) -> ImResult<MarkReadResult>

Source

pub fn mark_thread_read( &self, request: MarkThreadReadRequest, ) -> ImResult<MarkThreadReadResult>

Source

pub async fn mark_thread_read_async( &self, request: MarkThreadReadRequest, ) -> ImResult<MarkThreadReadResult>

Source

pub fn mark_conversation_read( &self, request: MarkConversationReadRequest, ) -> ImResult<MarkThreadReadResult>

Source

pub async fn mark_conversation_read_async( &self, request: MarkConversationReadRequest, ) -> ImResult<MarkThreadReadResult>

Source

pub fn sync_thread_after( &self, request: SyncThreadAfterRequest, ) -> ImResult<SyncThreadAfterResult>

Source

pub async fn sync_thread_after_async( &self, request: SyncThreadAfterRequest, ) -> ImResult<SyncThreadAfterResult>

Source

pub fn sync_conversation_after( &self, request: SyncConversationAfterRequest, ) -> ImResult<SyncThreadAfterResult>

Source

pub async fn sync_conversation_after_async( &self, request: SyncConversationAfterRequest, ) -> ImResult<SyncThreadAfterResult>

Source

pub fn sync_delta(&self, request: SyncDeltaRequest) -> ImResult<SyncDeltaResult>

Source

pub async fn sync_delta_async( &self, request: SyncDeltaRequest, ) -> ImResult<SyncDeltaResult>

Source

pub fn conversations( &self, query: ConversationQuery, ) -> ImResult<Page<Conversation>>

Source

pub async fn conversations_async( &self, query: ConversationQuery, ) -> ImResult<Page<Conversation>>

Source

pub fn load_conversation_snapshot( &self, ) -> ImResult<Option<ConversationListSnapshot>>

Source

pub async fn load_conversation_snapshot_async( &self, ) -> ImResult<Option<ConversationListSnapshot>>

Source

pub fn clear_conversation_snapshot(&self) -> ImResult<()>

Source

pub async fn clear_conversation_snapshot_async(&self) -> ImResult<()>

Source

pub fn watch_conversation_patches(&self) -> ImResult<ConversationPatchSession>

Source

pub async fn watch_conversation_patches_async( &self, ) -> ImResult<ConversationPatchSession>

Source

pub fn repair_conversation_store(&self) -> ImResult<ConversationStorePatch>

Source

pub async fn repair_conversation_store_async( &self, ) -> ImResult<ConversationStorePatch>

Source

pub fn watch_thread_patches( &self, thread: ThreadRef, limit: Option<u32>, ) -> ImResult<ThreadMessagePatchSession>

Source

pub async fn watch_thread_patches_async( &self, thread: ThreadRef, limit: Option<u32>, ) -> ImResult<ThreadMessagePatchSession>

Source

pub fn watch_conversation_timeline_patches( &self, conversation: ConversationReadRef, limit: Option<u32>, ) -> ImResult<ThreadMessagePatchSession>

Source

pub async fn watch_conversation_timeline_patches_async( &self, conversation: ConversationReadRef, limit: Option<u32>, ) -> ImResult<ThreadMessagePatchSession>

Source

pub fn repair_thread_store( &self, thread: ThreadRef, limit: Option<u32>, ) -> ImResult<ThreadMessageStorePatch>

Source

pub async fn repair_thread_store_async( &self, thread: ThreadRef, limit: Option<u32>, ) -> ImResult<ThreadMessageStorePatch>

Source

pub fn repair_conversation_timeline_store( &self, conversation: ConversationReadRef, limit: Option<u32>, ) -> ImResult<ThreadMessageStorePatch>

Source

pub async fn repair_conversation_timeline_store_async( &self, conversation: ConversationReadRef, limit: Option<u32>, ) -> ImResult<ThreadMessageStorePatch>

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for MessageService<'a>

§

impl<'a> !UnwindSafe for MessageService<'a>

§

impl<'a> Freeze for MessageService<'a>

§

impl<'a> Send for MessageService<'a>

§

impl<'a> Sync for MessageService<'a>

§

impl<'a> Unpin for MessageService<'a>

§

impl<'a> UnsafeUnpin for MessageService<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more