[][src]Struct aws_iot_device_sdk_rust::shadow::AWSShadowManager

pub struct AWSShadowManager<'a> {
    pub aws_iot_client: &'a mut AWSIoTClient,
    pub thing_name: String,
    // some fields omitted


aws_iot_client: &'a mut AWSIoTClientthing_name: String


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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.