pub struct MultiUserUser {Show 14 fields
pub id: UserId,
pub display_name: String,
pub position: Position3D,
pub orientation: [f32; 4],
pub velocity: Position3D,
pub role: UserRole,
pub is_speaking: bool,
pub audio_sources: HashMap<SourceId, MultiUserAudioSource>,
pub connection_status: ConnectionStatus,
pub last_update: Instant,
pub audio_settings: UserAudioSettings,
pub network_stats: NetworkStats,
pub accessible_zones: Vec<SpatialZone>,
pub friends: HashSet<UserId>,
}Expand description
User in the multi-user spatial audio environment
Fields§
§id: UserIdUnique user identifier
display_name: StringDisplay name for the user
position: Position3DCurrent position in 3D space
orientation: [f32; 4]Orientation as quaternion (w, x, y, z)
velocity: Position3DVelocity for movement prediction
role: UserRoleUser role and permissions
is_speaking: boolWhether user is currently speaking
audio_sources: HashMap<SourceId, MultiUserAudioSource>Audio sources owned by this user
connection_status: ConnectionStatusUser’s connection status
last_update: InstantLast update timestamp
audio_settings: UserAudioSettingsUser-specific audio settings
network_stats: NetworkStatsNetwork statistics for this user
accessible_zones: Vec<SpatialZone>Spatial zones the user has access to
friends: HashSet<UserId>List of friends (user IDs)
Trait Implementations§
Source§impl Clone for MultiUserUser
impl Clone for MultiUserUser
Source§fn clone(&self) -> MultiUserUser
fn clone(&self) -> MultiUserUser
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 moreAuto Trait Implementations§
impl Freeze for MultiUserUser
impl RefUnwindSafe for MultiUserUser
impl Send for MultiUserUser
impl Sync for MultiUserUser
impl Unpin for MultiUserUser
impl UnsafeUnpin for MultiUserUser
impl UnwindSafe for MultiUserUser
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more