pub struct StartSessionMessage {
pub peer_id: String,
pub offer: Option<String>,
}
Expand description
Ask the server to start a session (either as a producer or a consumer)
Fields§
§peer_id: String
Identifies the peer
offer: Option<String>
An offer if the consumer peer wants the producer to answer
Trait Implementations§
Source§impl Debug for StartSessionMessage
impl Debug for StartSessionMessage
Source§impl<'de> Deserialize<'de> for StartSessionMessage
impl<'de> Deserialize<'de> for StartSessionMessage
Source§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
Auto Trait Implementations§
impl Freeze for StartSessionMessage
impl RefUnwindSafe for StartSessionMessage
impl Send for StartSessionMessage
impl Sync for StartSessionMessage
impl Unpin for StartSessionMessage
impl UnwindSafe for StartSessionMessage
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