Struct rusoto_iot_data::IotDataClient
source · [−]pub struct IotDataClient { /* private fields */ }
Expand description
A client for the AWS IoT Data Plane API.
Implementations
sourceimpl IotDataClient
impl IotDataClient
sourcepub fn new(region: Region) -> IotDataClient
pub fn new(region: Region) -> IotDataClient
Creates a client backed by the default tokio event loop.
The client will use the default credentials provider and tls client.
pub fn new_with<P, D>(
request_dispatcher: D,
credentials_provider: P,
region: Region
) -> IotDataClient where
P: ProvideAwsCredentials + Send + Sync + 'static,
D: DispatchSignedRequest + Send + Sync + 'static,
pub fn new_with_client(client: Client, region: Region) -> IotDataClient
Trait Implementations
sourceimpl Clone for IotDataClient
impl Clone for IotDataClient
sourcefn clone(&self) -> IotDataClient
fn clone(&self) -> IotDataClient
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl IotData for IotDataClient
impl IotData for IotDataClient
sourcefn delete_thing_shadow<'life0, 'async_trait>(
&'life0 self,
input: DeleteThingShadowRequest
) -> Pin<Box<dyn Future<Output = Result<DeleteThingShadowResponse, RusotoError<DeleteThingShadowError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn delete_thing_shadow<'life0, 'async_trait>(
&'life0 self,
input: DeleteThingShadowRequest
) -> Pin<Box<dyn Future<Output = Result<DeleteThingShadowResponse, RusotoError<DeleteThingShadowError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Deletes the shadow for the specified thing.
For more information, see DeleteThingShadow in the AWS IoT Developer Guide.
sourcefn get_thing_shadow<'life0, 'async_trait>(
&'life0 self,
input: GetThingShadowRequest
) -> Pin<Box<dyn Future<Output = Result<GetThingShadowResponse, RusotoError<GetThingShadowError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_thing_shadow<'life0, 'async_trait>(
&'life0 self,
input: GetThingShadowRequest
) -> Pin<Box<dyn Future<Output = Result<GetThingShadowResponse, RusotoError<GetThingShadowError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Gets the shadow for the specified thing.
For more information, see GetThingShadow in the AWS IoT Developer Guide.
sourcefn list_named_shadows_for_thing<'life0, 'async_trait>(
&'life0 self,
input: ListNamedShadowsForThingRequest
) -> Pin<Box<dyn Future<Output = Result<ListNamedShadowsForThingResponse, RusotoError<ListNamedShadowsForThingError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn list_named_shadows_for_thing<'life0, 'async_trait>(
&'life0 self,
input: ListNamedShadowsForThingRequest
) -> Pin<Box<dyn Future<Output = Result<ListNamedShadowsForThingResponse, RusotoError<ListNamedShadowsForThingError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Lists the shadows for the specified thing.
sourcefn publish<'life0, 'async_trait>(
&'life0 self,
input: PublishRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<PublishError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn publish<'life0, 'async_trait>(
&'life0 self,
input: PublishRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<PublishError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Publishes state information.
For more information, see HTTP Protocol in the AWS IoT Developer Guide.
sourcefn update_thing_shadow<'life0, 'async_trait>(
&'life0 self,
input: UpdateThingShadowRequest
) -> Pin<Box<dyn Future<Output = Result<UpdateThingShadowResponse, RusotoError<UpdateThingShadowError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn update_thing_shadow<'life0, 'async_trait>(
&'life0 self,
input: UpdateThingShadowRequest
) -> Pin<Box<dyn Future<Output = Result<UpdateThingShadowResponse, RusotoError<UpdateThingShadowError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Updates the shadow for the specified thing.
For more information, see UpdateThingShadow in the AWS IoT Developer Guide.
Auto Trait Implementations
impl !RefUnwindSafe for IotDataClient
impl Send for IotDataClient
impl Sync for IotDataClient
impl Unpin for IotDataClient
impl !UnwindSafe for IotDataClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more