pub enum Inbound {
Subscribe,
Message(Box<InboundMessage>),
Command(InboundCommand),
Button(InboundButton),
Reaction(InboundReaction),
Edited(InboundEdited),
}Expand description
An event a driver injects into the bot.
Variants§
Subscribe
Register this connection as an outbound stream. Only meaningful on the socket transport; on stdio the single stream is implicit.
Message(Box<InboundMessage>)
A plain or media message.
Command(InboundCommand)
A command invocation.
Button(InboundButton)
An inline-button press.
Reaction(InboundReaction)
A reaction update.
Edited(InboundEdited)
A message edit.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Inbound
impl<'de> Deserialize<'de> for Inbound
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Inbound
Auto Trait Implementations§
impl Freeze for Inbound
impl RefUnwindSafe for Inbound
impl Send for Inbound
impl Sync for Inbound
impl Unpin for Inbound
impl UnsafeUnpin for Inbound
impl UnwindSafe for Inbound
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