pub struct TelegramCodec;Expand description
Telegram Bot API update codec. Polling and HTTP transport remain host-owned.
Trait Implementations§
Source§impl ChannelCodec for TelegramCodec
impl ChannelCodec for TelegramCodec
fn channel(&self) -> ChannelId
fn decode(&self, payload: &str) -> Result<Option<InboundMessage>, ChannelError>
fn encode( &self, message: &OutboundMessage, ) -> Result<OutboundRequest, ChannelError>
fn challenge(&self, _payload: &str) -> Option<String>
Source§impl Clone for TelegramCodec
impl Clone for TelegramCodec
impl Copy for TelegramCodec
Source§impl Debug for TelegramCodec
impl Debug for TelegramCodec
Auto Trait Implementations§
impl Freeze for TelegramCodec
impl RefUnwindSafe for TelegramCodec
impl Send for TelegramCodec
impl Sync for TelegramCodec
impl Unpin for TelegramCodec
impl UnsafeUnpin for TelegramCodec
impl UnwindSafe for TelegramCodec
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