Struct opentok_server::OpenTok [−][src]
pub struct OpenTok { /* fields omitted */ }
Expand description
Top level entry point exposing the OpenTok server SDK functionality. Contains methods for creating OpenTok sessions, generating tokens and getting information about streams.
Implementations
Create a new instance of OpenTok. Requires an OpenTok API key and the API secret for your TokBox account. Do not publicly share your API secret.
pub async fn create_session<'a>(
&self,
options: SessionOptions<'a>
) -> Result<String, OpenTokError>
pub async fn create_session<'a>(
&self,
options: SessionOptions<'a>
) -> Result<String, OpenTokError>
Creates a new OpenTok session. On success, a session ID is provided.
pub async fn get_stream_info(
&self,
session_id: &str,
stream_id: &str
) -> Result<StreamInfo, OpenTokError>
Auto Trait Implementations
impl RefUnwindSafe for OpenTok
impl UnwindSafe for OpenTok
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more