pub struct TurnQueueTakeLatestResult {
pub session_id: String,
pub text: Option<String>,
pub queue_depth: usize,
}Expand description
Result of popping the newest queued message.
Fields§
§session_id: StringSession that owns the queue.
text: Option<String>Popped message text, or None when the queue was empty.
queue_depth: usizeQueue depth after the pop.
Trait Implementations§
Source§impl Clone for TurnQueueTakeLatestResult
impl Clone for TurnQueueTakeLatestResult
Source§impl Debug for TurnQueueTakeLatestResult
impl Debug for TurnQueueTakeLatestResult
Source§impl<'de> Deserialize<'de> for TurnQueueTakeLatestResult
impl<'de> Deserialize<'de> for TurnQueueTakeLatestResult
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 Eq for TurnQueueTakeLatestResult
impl StructuralPartialEq for TurnQueueTakeLatestResult
Auto Trait Implementations§
impl Freeze for TurnQueueTakeLatestResult
impl RefUnwindSafe for TurnQueueTakeLatestResult
impl Send for TurnQueueTakeLatestResult
impl Sync for TurnQueueTakeLatestResult
impl Unpin for TurnQueueTakeLatestResult
impl UnsafeUnpin for TurnQueueTakeLatestResult
impl UnwindSafe for TurnQueueTakeLatestResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.