pub struct Friend {
pub user_id: String,
pub pseudo: String,
pub online: bool,
pub in_game: bool,
pub joinable: bool,
pub lobby_id: Option<String>,
}Expand description
One friend of the signed-in Arcane account, with their presence.
Fields§
§user_id: StringThe friend’s Arcane account id — the value Arcane identifies them by.
pseudo: StringTheir display name on Arcane.
online: boolWhether they are signed in to Arcane right now.
in_game: boolWhether they are playing this title right now — the title named by
ARCANE_GAME_ID.
joinable: boolWhether Friend::lobby_id has a free slot. Check it before joining
with crate::P2p::join.
lobby_id: Option<String>The lobby they are in, when it is a lobby of this title other than a
code lobby, full or not. None otherwise, including for a lobby of
another title.
Trait Implementations§
impl Eq for Friend
impl StructuralPartialEq for Friend
Auto Trait Implementations§
impl Freeze for Friend
impl RefUnwindSafe for Friend
impl Send for Friend
impl Sync for Friend
impl Unpin for Friend
impl UnsafeUnpin for Friend
impl UnwindSafe for Friend
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