pub struct SendResult {
pub task: TaskRecord,
pub reply: Option<ChatMessage>,
}Expand description
Returned by threads().send(...); reply is set when the call waited for the bot.
Fields§
§task: TaskRecord§reply: Option<ChatMessage>Implementations§
Trait Implementations§
Source§impl Clone for SendResult
impl Clone for SendResult
Source§impl Debug for SendResult
impl Debug for SendResult
Source§impl<'de> Deserialize<'de> for SendResult
impl<'de> Deserialize<'de> for SendResult
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
Auto Trait Implementations§
impl Freeze for SendResult
impl RefUnwindSafe for SendResult
impl Send for SendResult
impl Sync for SendResult
impl Unpin for SendResult
impl UnsafeUnpin for SendResult
impl UnwindSafe for SendResult
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