Struct aws_sdk_iot::model::ThingConnectivity
source · #[non_exhaustive]pub struct ThingConnectivity { /* private fields */ }
Expand description
The connectivity status of the thing.
Implementations§
source§impl ThingConnectivity
impl ThingConnectivity
sourcepub fn connected(&self) -> bool
pub fn connected(&self) -> 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() -> Builder
pub fn builder() -> Builder
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
Returns a copy 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 ThingConnectivity
impl Debug for ThingConnectivity
source§impl PartialEq<ThingConnectivity> for ThingConnectivity
impl PartialEq<ThingConnectivity> for ThingConnectivity
source§fn eq(&self, other: &ThingConnectivity) -> bool
fn eq(&self, other: &ThingConnectivity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.