pub enum MultiUserEvent {
UserJoined {
user_id: UserId,
timestamp: SystemTime,
position: Position3D,
},
UserLeft {
user_id: UserId,
timestamp: SystemTime,
reason: DisconnectReason,
},
UserMoved {
user_id: UserId,
timestamp: SystemTime,
old_position: Position3D,
new_position: Position3D,
},
UserStartedSpeaking {
user_id: UserId,
timestamp: SystemTime,
confidence: f32,
},
UserStoppedSpeaking {
user_id: UserId,
timestamp: SystemTime,
duration: Duration,
},
SourceCreated {
source_id: SourceId,
user_id: UserId,
timestamp: SystemTime,
source_type: AudioSourceType,
},
SourceRemoved {
source_id: SourceId,
timestamp: SystemTime,
reason: String,
},
NetworkEvent {
user_id: UserId,
timestamp: SystemTime,
event_type: NetworkEventType,
value: f64,
},
}Expand description
Events in the multi-user environment
Variants§
UserJoined
User joined the environment
UserLeft
User left the environment
UserMoved
User moved in space
Fields
§
timestamp: SystemTimeWhen the movement occurred
§
old_position: Position3DPrevious position
§
new_position: Position3DNew position
UserStartedSpeaking
User started speaking
Fields
§
timestamp: SystemTimeWhen speaking started
UserStoppedSpeaking
User stopped speaking
Fields
§
timestamp: SystemTimeWhen speaking stopped
SourceCreated
Audio source created
Fields
§
timestamp: SystemTimeWhen the source was created
§
source_type: AudioSourceTypeType of the audio source
SourceRemoved
Audio source removed
Fields
§
timestamp: SystemTimeWhen the source was removed
NetworkEvent
Network event (latency, packet loss, etc.)
Fields
§
timestamp: SystemTimeWhen the event occurred
§
event_type: NetworkEventTypeType of network event
Trait Implementations§
Source§impl Clone for MultiUserEvent
impl Clone for MultiUserEvent
Source§fn clone(&self) -> MultiUserEvent
fn clone(&self) -> MultiUserEvent
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 MultiUserEvent
impl RefUnwindSafe for MultiUserEvent
impl Send for MultiUserEvent
impl Sync for MultiUserEvent
impl Unpin for MultiUserEvent
impl UnsafeUnpin for MultiUserEvent
impl UnwindSafe for MultiUserEvent
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