pub enum ThreadStatus {
Active,
Locked {
reason: Option<String>,
},
Closed {
reason: Option<String>,
},
}Expand description
Current status for the thread.
Variants§
Active
Indicates that a thread is active.
Locked
Indicates that a thread is locked and cannot accept new input.
Closed
Indicates that a thread has been closed.
Trait Implementations§
Source§impl Clone for ThreadStatus
impl Clone for ThreadStatus
Source§fn clone(&self) -> ThreadStatus
fn clone(&self) -> ThreadStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThreadStatus
impl Debug for ThreadStatus
Source§impl<'de> Deserialize<'de> for ThreadStatus
impl<'de> Deserialize<'de> for ThreadStatus
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
Source§impl PartialEq for ThreadStatus
impl PartialEq for ThreadStatus
Source§impl Serialize for ThreadStatus
impl Serialize for ThreadStatus
impl StructuralPartialEq for ThreadStatus
Auto Trait Implementations§
impl Freeze for ThreadStatus
impl RefUnwindSafe for ThreadStatus
impl Send for ThreadStatus
impl Sync for ThreadStatus
impl Unpin for ThreadStatus
impl UnwindSafe for ThreadStatus
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