pub enum Inbound {
Message(InboundMessage),
Callback(CallbackQuery),
}Expand description
Everything a platform can push onto its inbound channel: a text message or
a button press. Kept as one enum (rather than two channels) so a platform
whose transport interleaves both in a single feed (Telegram’s
getUpdates) preserves delivery order end to end.
Variants§
Message(InboundMessage)
Callback(CallbackQuery)
Trait Implementations§
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