pub struct StartSession {Show 22 fields
pub room_name: String,
pub identity: String,
pub connection_id: String,
pub reconnect: bool,
pub auto_subscribe: bool,
pub auto_subscribe_data_track: Option<bool>,
pub hidden: bool,
pub client: Option<ClientInfo>,
pub recorder: bool,
pub name: String,
pub grants_json: String,
pub adaptive_stream: bool,
pub participant_id: String,
pub reconnect_reason: i32,
pub subscriber_allow_pause: Option<bool>,
pub disable_ice_lite: bool,
pub create_room: Option<CreateRoomRequest>,
pub add_track_requests: Vec<AddTrackRequest>,
pub publisher_offer: Option<SessionDescription>,
pub sync_state: Option<SyncState>,
pub use_single_peer_connection: bool,
pub token_expires_at: i64,
}Fields§
§room_name: String§identity: String§connection_id: String§reconnect: boolif a client is reconnecting (i.e. resume instead of restart)
auto_subscribe: bool§auto_subscribe_data_track: Option<bool>👎Deprecated
§client: Option<ClientInfo>§recorder: bool👎Deprecated
§name: String§grants_json: StringA user’s ClaimGrants serialized in JSON
adaptive_stream: bool§participant_id: Stringif reconnect, client will set current sid
reconnect_reason: i32§subscriber_allow_pause: Option<bool>§disable_ice_lite: bool§create_room: Option<CreateRoomRequest>§add_track_requests: Vec<AddTrackRequest>§publisher_offer: Option<SessionDescription>§sync_state: Option<SyncState>§use_single_peer_connection: bool§token_expires_at: i64Implementations§
Source§impl StartSession
impl StartSession
Sourcepub fn reconnect_reason(&self) -> ReconnectReason
pub fn reconnect_reason(&self) -> ReconnectReason
Returns the enum value of reconnect_reason, or the default if the field is set to an invalid enum value.
Sourcepub fn set_reconnect_reason(&mut self, value: ReconnectReason)
pub fn set_reconnect_reason(&mut self, value: ReconnectReason)
Sets reconnect_reason to the provided enum value.
Sourcepub fn subscriber_allow_pause(&self) -> bool
pub fn subscriber_allow_pause(&self) -> bool
Returns the value of subscriber_allow_pause, or the default value if subscriber_allow_pause is unset.
Sourcepub fn auto_subscribe_data_track(&self) -> bool
pub fn auto_subscribe_data_track(&self) -> bool
Returns the value of auto_subscribe_data_track, or the default value if auto_subscribe_data_track is unset.
Trait Implementations§
Source§impl Clone for StartSession
impl Clone for StartSession
Source§impl Debug for StartSession
impl Debug for StartSession
Source§impl Default for StartSession
impl Default for StartSession
§impl<'de> Deserialize<'de> for StartSession
impl<'de> Deserialize<'de> for StartSession
§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for StartSession
impl Message for StartSession
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for StartSession
impl PartialEq for StartSession
§impl Serialize for StartSession
impl Serialize for StartSession
impl StructuralPartialEq for StartSession
Auto Trait Implementations§
impl Freeze for StartSession
impl RefUnwindSafe for StartSession
impl Send for StartSession
impl Sync for StartSession
impl Unpin for StartSession
impl UnsafeUnpin for StartSession
impl UnwindSafe for StartSession
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more