pub struct StatusInfo {
pub status: Status,
pub age_secs: u64,
pub stale: bool,
}Expand description
A Status in the reply to who, with its age.
Fields§
§status: Status§age_secs: u64The seconds since the session set the status.
stale: boolTrue when the session set the status before the last change of
its state: a claim or a release, a pause or a resume of the
riff, or a start of riff-server (01M3Q551YHYZBFV2NDS1QCYXCD).
A stale status is not the current state of the session.
Trait Implementations§
Source§impl Clone for StatusInfo
impl Clone for StatusInfo
Source§fn clone(&self) -> StatusInfo
fn clone(&self) -> StatusInfo
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 StatusInfo
impl Debug for StatusInfo
Source§impl<'de> Deserialize<'de> for StatusInfo
impl<'de> Deserialize<'de> for StatusInfo
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 JsonSchema for StatusInfo
impl JsonSchema for StatusInfo
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for StatusInfo
impl PartialEq for StatusInfo
Source§impl Serialize for StatusInfo
impl Serialize for StatusInfo
impl Eq for StatusInfo
impl StructuralPartialEq for StatusInfo
Auto Trait Implementations§
impl Freeze for StatusInfo
impl RefUnwindSafe for StatusInfo
impl Send for StatusInfo
impl Sync for StatusInfo
impl Unpin for StatusInfo
impl UnsafeUnpin for StatusInfo
impl UnwindSafe for StatusInfo
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.