Struct opentok::session::Session[][src]

pub struct Session { /* fields omitted */ }

Implementations

Creates a new OpenTok session.

  • api_key: Your OpenTok API key. You can get it from https://tokbox.com/account
  • session_id: The identifier of the session.
  • callbacks: An instance of SessionCallbacks containing the handlers for events related to the session.

Connects a client to an OpenTok session.

Disconnects the client from this session. All of the client’s subscribers and publishers will also be disconnected from the session.

Starts a publisher streaming to the session.

Stops publishing from a session, causing the publisher stream to stop.

Starts subscribing to an audio/video stream in this session.

Stops subscribing to a specific audio/video stream in this session.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.