[][src]Struct rusoto_connectparticipant::ConnectParticipantClient

pub struct ConnectParticipantClient { /* fields omitted */ }

A client for the Amazon Connect Participant API.

Implementations

impl ConnectParticipantClient[src]

pub fn new(region: Region) -> ConnectParticipantClient[src]

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
) -> ConnectParticipantClient where
    P: ProvideAwsCredentials + Send + Sync + 'static,
    D: DispatchSignedRequest + Send + Sync + 'static, 
[src]

pub fn new_with_client(
    client: Client,
    region: Region
) -> ConnectParticipantClient
[src]

Trait Implementations

impl Clone for ConnectParticipantClient[src]

impl ConnectParticipant for ConnectParticipantClient[src]

fn create_participant_connection<'life0, 'async_trait>(
    &'life0 self,
    input: CreateParticipantConnectionRequest
) -> Pin<Box<dyn Future<Output = Result<CreateParticipantConnectionResponse, RusotoError<CreateParticipantConnectionError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Creates the participant's connection. Note that ParticipantToken is used for invoking this API instead of ConnectionToken.

The participant token is valid for the lifetime of the participant – until the they are part of a contact.

The response URL for WEBSOCKET Type has a connect expiry timeout of 100s. Clients must manually connect to the returned websocket URL and subscribe to the desired topic.

For chat, you need to publish the following on the established websocket connection:

{"topic":"aws/subscribe","content":{"topics":["aws/chat"]}}

Upon websocket URL expiry, as specified in the response ConnectionExpiry parameter, clients need to call this API again to obtain a new websocket URL and perform the same steps as before.

fn disconnect_participant<'life0, 'async_trait>(
    &'life0 self,
    input: DisconnectParticipantRequest
) -> Pin<Box<dyn Future<Output = Result<DisconnectParticipantResponse, RusotoError<DisconnectParticipantError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Disconnects a participant. Note that ConnectionToken is used for invoking this API instead of ParticipantToken.

fn get_transcript<'life0, 'async_trait>(
    &'life0 self,
    input: GetTranscriptRequest
) -> Pin<Box<dyn Future<Output = Result<GetTranscriptResponse, RusotoError<GetTranscriptError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Retrieves a transcript of the session. Note that ConnectionToken is used for invoking this API instead of ParticipantToken.

fn send_event<'life0, 'async_trait>(
    &'life0 self,
    input: SendEventRequest
) -> Pin<Box<dyn Future<Output = Result<SendEventResponse, RusotoError<SendEventError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Sends an event. Note that ConnectionToken is used for invoking this API instead of ParticipantToken.

fn send_message<'life0, 'async_trait>(
    &'life0 self,
    input: SendMessageRequest
) -> Pin<Box<dyn Future<Output = Result<SendMessageResponse, RusotoError<SendMessageError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Sends a message. Note that ConnectionToken is used for invoking this API instead of ParticipantToken.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.