pub struct MatrixChannel { /* private fields */ }Expand description
Matrix channel adapter.
Implementations§
Source§impl MatrixChannel
impl MatrixChannel
Trait Implementations§
Source§impl Channel for MatrixChannel
impl Channel for MatrixChannel
Source§fn capabilities(&self) -> ChannelCapabilities
fn capabilities(&self) -> ChannelCapabilities
Channel capabilities.
Source§fn start<'life0, 'async_trait>(
&'life0 self,
_ctx: ChannelContext,
) -> Pin<Box<dyn Future<Output = Result<(), ChannelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start<'life0, 'async_trait>(
&'life0 self,
_ctx: ChannelContext,
) -> Pin<Box<dyn Future<Output = Result<(), ChannelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Start monitoring for inbound messages.
Source§fn stop<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ChannelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stop<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ChannelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stop monitoring.
Source§fn probe<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ChannelProbe, ChannelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn probe<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ChannelProbe, ChannelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Check if channel is ready.
Source§impl ChannelInbound for MatrixChannel
impl ChannelInbound for MatrixChannel
Source§type RawMessage = MatrixEvent
type RawMessage = MatrixEvent
Raw message type from the platform.
Source§fn normalize(&self, raw: Self::RawMessage) -> Result<Message, ChannelError>
fn normalize(&self, raw: Self::RawMessage) -> Result<Message, ChannelError>
Normalize raw message to common format.
Source§impl ChannelOutbound for MatrixChannel
impl ChannelOutbound for MatrixChannel
Source§fn send_text<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: OutboundContext,
text: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<DeliveryResult, ChannelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send_text<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: OutboundContext,
text: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<DeliveryResult, ChannelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send a text message.
Source§fn send_media<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: OutboundContext,
media: &'life1 [Attachment],
) -> Pin<Box<dyn Future<Output = Result<DeliveryResult, ChannelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send_media<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: OutboundContext,
media: &'life1 [Attachment],
) -> Pin<Box<dyn Future<Output = Result<DeliveryResult, ChannelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send media attachments.
Source§fn text_chunk_limit(&self) -> usize
fn text_chunk_limit(&self) -> usize
Maximum text message length.
Source§fn delivery_mode(&self) -> DeliveryMode
fn delivery_mode(&self) -> DeliveryMode
Delivery mode.
Auto Trait Implementations§
impl Freeze for MatrixChannel
impl !RefUnwindSafe for MatrixChannel
impl Send for MatrixChannel
impl Sync for MatrixChannel
impl Unpin for MatrixChannel
impl !UnwindSafe for MatrixChannel
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