pub struct SessionPeer {
pub player_id: PlayerId,
pub player_name: String,
pub is_authority: bool,
pub initiate: bool,
}Expand description
A peer the recipient should connect to within a SessionPlanPayload (protocol v3).
Fields§
§player_id: PlayerIdThe other peer’s identifier.
player_name: StringThe other peer’s display name.
Whether this peer is the session’s authoritative host.
initiate: boolWhether the recipient sends the WebRTC offer to this peer.
Server-assigned (a deterministic “designated offerer”). Obey it verbatim — the client never computes who initiates.
Trait Implementations§
Source§impl Clone for SessionPeer
impl Clone for SessionPeer
Source§fn clone(&self) -> SessionPeer
fn clone(&self) -> SessionPeer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionPeer
impl Debug for SessionPeer
Source§impl<'de> Deserialize<'de> for SessionPeer
impl<'de> Deserialize<'de> for SessionPeer
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
impl Eq for SessionPeer
Source§impl PartialEq for SessionPeer
impl PartialEq for SessionPeer
Source§impl Serialize for SessionPeer
impl Serialize for SessionPeer
impl StructuralPartialEq for SessionPeer
Auto Trait Implementations§
impl Freeze for SessionPeer
impl RefUnwindSafe for SessionPeer
impl Send for SessionPeer
impl Sync for SessionPeer
impl Unpin for SessionPeer
impl UnsafeUnpin for SessionPeer
impl UnwindSafe for SessionPeer
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