pub struct DiscordCodec;Expand description
Discord message/webhook codec. Gateway authentication and websocket choice remain host-owned.
Trait Implementations§
Source§impl ChannelCodec for DiscordCodec
impl ChannelCodec for DiscordCodec
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 DiscordCodec
impl Clone for DiscordCodec
impl Copy for DiscordCodec
Source§impl Debug for DiscordCodec
impl Debug for DiscordCodec
Auto Trait Implementations§
impl Freeze for DiscordCodec
impl RefUnwindSafe for DiscordCodec
impl Send for DiscordCodec
impl Sync for DiscordCodec
impl Unpin for DiscordCodec
impl UnsafeUnpin for DiscordCodec
impl UnwindSafe for DiscordCodec
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