pub struct PlayerCreated {
pub method: PlayerCreatedMethod,
pub params: PlayerCreatedParams,
}Expand description
Called whenever a player is created, or when a new agent joins and receives a list of active players. If an agent is restored, it will receive one event for each active player. playerCreated
Fields§
§method: PlayerCreatedMethod§params: PlayerCreatedParamsImplementations§
Source§impl PlayerCreated
impl PlayerCreated
pub const IDENTIFIER: &'static str = "Media.playerCreated"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for PlayerCreated
impl Clone for PlayerCreated
Source§fn clone(&self) -> PlayerCreated
fn clone(&self) -> PlayerCreated
Returns a duplicate of the value. Read more
1.0.0 · 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 PlayerCreated
impl Debug for PlayerCreated
Source§impl<'de> Deserialize<'de> for PlayerCreated
impl<'de> Deserialize<'de> for PlayerCreated
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
Source§impl From<PlayerCreated> for BrowserProtocolEvents
impl From<PlayerCreated> for BrowserProtocolEvents
Source§fn from(v: PlayerCreated) -> Self
fn from(v: PlayerCreated) -> Self
Converts to this type from the input type.
Source§impl From<PlayerCreated> for Event
impl From<PlayerCreated> for Event
Source§fn from(v: PlayerCreated) -> Self
fn from(v: PlayerCreated) -> Self
Converts to this type from the input type.
Source§impl From<PlayerCreated> for MediaEvents
impl From<PlayerCreated> for MediaEvents
Source§fn from(v: PlayerCreated) -> Self
fn from(v: PlayerCreated) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PlayerCreated
impl PartialEq for PlayerCreated
Source§impl Serialize for PlayerCreated
impl Serialize for PlayerCreated
Source§impl TryFrom<BrowserProtocolEvents> for PlayerCreated
impl TryFrom<BrowserProtocolEvents> for PlayerCreated
Source§type Error = BrowserProtocolEvents
type Error = BrowserProtocolEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolEvents,
) -> Result<Self, <PlayerCreated as TryFrom<BrowserProtocolEvents>>::Error>
fn try_from( e: BrowserProtocolEvents, ) -> Result<Self, <PlayerCreated as TryFrom<BrowserProtocolEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<Event> for PlayerCreated
impl TryFrom<Event> for PlayerCreated
Source§impl TryFrom<MediaEvents> for PlayerCreated
impl TryFrom<MediaEvents> for PlayerCreated
Source§type Error = MediaEvents
type Error = MediaEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: MediaEvents,
) -> Result<Self, <PlayerCreated as TryFrom<MediaEvents>>::Error>
fn try_from( e: MediaEvents, ) -> Result<Self, <PlayerCreated as TryFrom<MediaEvents>>::Error>
Performs the conversion.
impl StructuralPartialEq for PlayerCreated
Auto Trait Implementations§
impl Freeze for PlayerCreated
impl RefUnwindSafe for PlayerCreated
impl Send for PlayerCreated
impl Sync for PlayerCreated
impl Unpin for PlayerCreated
impl UnsafeUnpin for PlayerCreated
impl UnwindSafe for PlayerCreated
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