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
impl<'a> RefUnwindSafe for SessionOptions<'a>
impl<'a> Send for SessionOptions<'a>
impl<'a> Sync for SessionOptions<'a>
impl<'a> Unpin for SessionOptions<'a>
impl<'a> UnwindSafe for SessionOptions<'a>
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