Struct aws_sdk_iot::types::ThingConnectivity
source · #[non_exhaustive]pub struct ThingConnectivity {
pub connected: Option<bool>,
pub timestamp: Option<i64>,
pub disconnect_reason: Option<String>,
}
Expand description
The connectivity status of the thing.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.connected: Option<bool>
True if the thing is connected to the Amazon Web Services IoT Core service; false if it is not connected.
timestamp: Option<i64>
The epoch time (in milliseconds) when the thing last connected or disconnected. If the thing has been disconnected for approximately an hour, the time value might be missing.
disconnect_reason: Option<String>
The reason why the client is disconnected. If the thing has been disconnected for approximately an hour, the disconnectReason
value might be missing.
Implementations§
source§impl ThingConnectivity
impl ThingConnectivity
sourcepub fn connected(&self) -> Option<bool>
pub fn connected(&self) -> Option<bool>
True if the thing is connected to the Amazon Web Services IoT Core service; false if it is not connected.
sourcepub fn timestamp(&self) -> Option<i64>
pub fn timestamp(&self) -> Option<i64>
The epoch time (in milliseconds) when the thing last connected or disconnected. If the thing has been disconnected for approximately an hour, the time value might be missing.
sourcepub fn disconnect_reason(&self) -> Option<&str>
pub fn disconnect_reason(&self) -> Option<&str>
The reason why the client is disconnected. If the thing has been disconnected for approximately an hour, the disconnectReason
value might be missing.
source§impl ThingConnectivity
impl ThingConnectivity
sourcepub fn builder() -> ThingConnectivityBuilder
pub fn builder() -> ThingConnectivityBuilder
Creates a new builder-style object to manufacture ThingConnectivity
.
Trait Implementations§
source§impl Clone for ThingConnectivity
impl Clone for ThingConnectivity
source§fn clone(&self) -> ThingConnectivity
fn clone(&self) -> ThingConnectivity
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ThingConnectivity
impl Debug for ThingConnectivity
source§impl PartialEq for ThingConnectivity
impl PartialEq for ThingConnectivity
source§fn eq(&self, other: &ThingConnectivity) -> bool
fn eq(&self, other: &ThingConnectivity) -> bool
self
and other
values to be equal, and is used
by ==
.