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 ==
.impl StructuralPartialEq for ThingConnectivity
Auto Trait Implementations§
impl Freeze for ThingConnectivity
impl RefUnwindSafe for ThingConnectivity
impl Send for ThingConnectivity
impl Sync for ThingConnectivity
impl Unpin for ThingConnectivity
impl UnwindSafe for ThingConnectivity
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more