pub struct TravelerHello {
pub id: u32,
pub sub: Option<String>,
pub name: Option<String>,
pub avatar: Option<String>,
}Expand description
A traveler’s announced identity (from welcome.occupants[] or a join),
handed back by PresenceClient::drain so the browser can fetch their
descriptor and render “them” instead of a placeholder.
Fields§
§id: u32§sub: Option<String>§name: Option<String>§avatar: Option<String>Their descriptor URL, if they carried a Passport with one.
Trait Implementations§
Source§impl Clone for TravelerHello
impl Clone for TravelerHello
Auto Trait Implementations§
impl Freeze for TravelerHello
impl RefUnwindSafe for TravelerHello
impl Send for TravelerHello
impl Sync for TravelerHello
impl Unpin for TravelerHello
impl UnsafeUnpin for TravelerHello
impl UnwindSafe for TravelerHello
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