Struct opentok_server::SessionOptions[][src]

pub struct SessionOptions<'a> {
    pub location: Option<&'a str>,
    pub media_mode: Option<MediaMode>,
    pub archive_mode: Option<ArchiveMode>,
}
Expand description

OpenTok Session options to be provided at Session creation time.

Fields

location: Option<&'a str>

An IP address that the OpenTok servers will use to situate the session in the global OpenTok network. If you do not set a location hint, the OpenTok servers will be based on the first client connecting to the session.

media_mode: Option<MediaMode>

Determines whether the session will transmit streams using the OpenTok Media Router (“routed”) or not (“relayed”). By default, the setting is “relayed”. With the media_mode parameter set to “relayed”, the session will attempt to transmit streams directly between clients. If clients cannot connect due to firewall restrictions, the session uses the OpenTok TURN server to relay audio-video streams.

archive_mode: Option<ArchiveMode>

Whether the session is automatically archived (“always”) or not (“manual”). By default, the setting is “manual”. To archive the session (either automatically or not), you must set the media_mode parameter to “routed”. Archiving is currently unsupported.

Trait Implementations

Returns the “default value” for a 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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

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.

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