[−][src]Struct aws_iot_device_sdk_rust::shadow::AWSShadowManager
Fields
aws_iot_client: &'a mut AWSIoTClient
thing_name: String
Methods
impl<'a> AWSShadowManager<'a>
[src]
pub fn new(aws_iot_client: &'a mut AWSIoTClient, thing_name: String) -> Self
[src]
Returns an instantiated shadow manager
pub fn get_shadow(&mut self, callback: fn(_: String))
[src]
Posts an empty message to get the device shadow from the AWS IoT Core broker.
pub fn delete_shadow(&mut self, callback: fn(_: String))
[src]
Deletes shadow.
pub fn add_listen_on_delta_callback(&mut self, callback: fn(_: String))
[src]
Add a callback for when a change to the shadow is accepted.
pub fn remove_listen_on_delta_callback(&mut self)
[src]
Call this if you do not longer want to have a callback associated with the shadow update topic.
pub fn subscribe_all(&mut self)
[src]
Subscribes to all shadow related topics.
pub fn update_shadow(&mut self, key: &str, value: Value)
[src]
Update a value in the local shadow, then publish it.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for AWSShadowManager<'a>
impl<'a> Send for AWSShadowManager<'a>
impl<'a> Sync for AWSShadowManager<'a>
impl<'a> Unpin for AWSShadowManager<'a>
impl<'a> !UnwindSafe for AWSShadowManager<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,