pub enum ThreadStatus {
NotLoaded,
Idle,
SystemError,
Active(Vec<ThreadActiveFlag>),
}Expand description
ThreadStatus
JSON schema
{
"oneOf": [
{
"title": "NotLoadedThreadStatus",
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"title": "NotLoadedThreadStatusType",
"type": "string",
"enum": [
"notLoaded"
]
}
}
},
{
"title": "IdleThreadStatus",
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"title": "IdleThreadStatusType",
"type": "string",
"enum": [
"idle"
]
}
}
},
{
"title": "SystemErrorThreadStatus",
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"title": "SystemErrorThreadStatusType",
"type": "string",
"enum": [
"systemError"
]
}
}
},
{
"title": "ActiveThreadStatus",
"type": "object",
"required": [
"activeFlags",
"type"
],
"properties": {
"activeFlags": {
"type": "array",
"items": {
"$ref": "#/definitions/ThreadActiveFlag"
}
},
"type": {
"title": "ActiveThreadStatusType",
"type": "string",
"enum": [
"active"
]
}
}
}
]
}Variants§
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 (const: unstable) · 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 From<Vec<ThreadActiveFlag>> for ThreadStatus
impl From<Vec<ThreadActiveFlag>> for ThreadStatus
Source§fn from(value: Vec<ThreadActiveFlag>) -> Self
fn from(value: Vec<ThreadActiveFlag>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ThreadStatus
impl RefUnwindSafe for ThreadStatus
impl Send for ThreadStatus
impl Sync for ThreadStatus
impl Unpin for ThreadStatus
impl UnsafeUnpin 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