pub struct ChatApi<'a, S: Storage + Clone> { /* private fields */ }Implementations§
Source§impl<S: Storage + Clone> ChatApi<'_, S>
impl<S: Storage + Clone> ChatApi<'_, S>
pub async fn init_flow(&mut self) -> Result<Value, HingeError>
pub async fn credentials(&mut self) -> Result<Value, HingeError>
pub async fn channels_raw( &mut self, user_id: &str, limit: usize, ) -> Result<Value, HingeError>
pub async fn channels( &mut self, limit: usize, ) -> Result<SendbirdChannelsResponse, HingeError>
pub async fn channel_raw( &mut self, channel_url: &str, ) -> Result<Value, HingeError>
pub async fn channel( &mut self, channel_url: &str, ) -> Result<SendbirdGroupChannel, HingeError>
pub async fn messages( &mut self, input: SendbirdGetMessagesInput, ) -> Result<SendbirdMessagesResponse, HingeError>
pub async fn full_messages( &mut self, channel_url: &str, ) -> Result<Vec<SendbirdMessage>, HingeError>
pub async fn export_chat( &mut self, input: ExportChatInput, ) -> Result<ExportChatResult, HingeError>
pub async fn create_distinct_dm( &mut self, self_user_id: &str, peer_user_id: &str, data_mm: i32, ) -> Result<Value, HingeError>
pub async fn get_or_create_dm_channel( &mut self, self_user_id: &str, peer_user_id: &str, ) -> Result<String, HingeError>
pub async fn ensure_dm_with( &mut self, partner_id: &str, ) -> Result<SendbirdChannelHandle, HingeError>
pub async fn send_message( &self, payload: SendMessagePayload, ) -> Result<Value, HingeError>
pub async fn subscribe( &mut self, ) -> Result<(UnboundedSender<String>, Receiver<String>), HingeError>
pub async fn subscribe_events( &mut self, ) -> Result<SendbirdWsSubscription, HingeError>
pub async fn send_ws_command( &mut self, command: String, ) -> Result<(), HingeError>
pub async fn mark_read( &mut self, channel_url: &str, ) -> Result<SendbirdReadResponse, HingeError>
pub async fn mark_read_fire_and_forget( &mut self, channel_url: &str, ) -> Result<(), HingeError>
pub async fn ping(&mut self) -> Result<(), HingeError>
pub async fn typing_start( &mut self, channel_url: &str, ) -> Result<(), HingeError>
pub async fn typing_end(&mut self, channel_url: &str) -> Result<(), HingeError>
pub async fn enter_channel( &mut self, channel_url: &str, ) -> Result<(), HingeError>
pub async fn exit_channel( &mut self, channel_url: &str, ) -> Result<(), HingeError>
pub async fn ack_message( &mut self, channel_url: &str, message_id: &str, ) -> Result<(), HingeError>
pub async fn close_ws( &mut self, request: SendbirdCloseRequest, ) -> Result<(), HingeError>
pub async fn ensure_ws_connected(&mut self) -> Result<bool, HingeError>
Auto Trait Implementations§
impl<'a, S> Freeze for ChatApi<'a, S>
impl<'a, S> !RefUnwindSafe for ChatApi<'a, S>
impl<'a, S> Send for ChatApi<'a, S>where
S: Send,
impl<'a, S> Sync for ChatApi<'a, S>where
S: Sync,
impl<'a, S> Unpin for ChatApi<'a, S>
impl<'a, S> UnsafeUnpin for ChatApi<'a, S>
impl<'a, S> !UnwindSafe for ChatApi<'a, S>
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