Enum rsvr_profile::KitProfile
source · pub enum KitProfile {
Local {
video: VideoOutputParams,
audio: AudioOutputParams,
input: Vec<InputProfile>,
},
WebRtc {
video: VideoOutputParams,
audio: AudioOutputParams,
input: Vec<InputProfile>,
signalling_socket: SocketAddr,
connection_id: String,
video_encoder: VideoEncoder,
framerate: (i32, i32),
},
}
Expand description
Represents one ‘player’ or ‘seat’ in the VR system
Variants
Local
WebRtc
Fields
video: VideoOutputParams
audio: AudioOutputParams
input: Vec<InputProfile>
signalling_socket: SocketAddr
connection_id: String
video_encoder: VideoEncoder
Implementations
sourceimpl KitProfile
impl KitProfile
pub fn video(&self) -> &VideoOutputParams
pub fn video_mut(&mut self) -> &mut VideoOutputParams
Trait Implementations
sourceimpl Clone for KitProfile
impl Clone for KitProfile
sourcefn clone(&self) -> KitProfile
fn clone(&self) -> KitProfile
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for KitProfile
impl Debug for KitProfile
sourceimpl<'de> Deserialize<'de> for KitProfile
impl<'de> Deserialize<'de> for KitProfile
sourcefn 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
sourceimpl PartialEq<KitProfile> for KitProfile
impl PartialEq<KitProfile> for KitProfile
sourcefn eq(&self, other: &KitProfile) -> bool
fn eq(&self, other: &KitProfile) -> bool
sourceimpl Serialize for KitProfile
impl Serialize for KitProfile
impl StructuralPartialEq for KitProfile
Auto Trait Implementations
impl RefUnwindSafe for KitProfile
impl Send for KitProfile
impl Sync for KitProfile
impl Unpin for KitProfile
impl UnwindSafe for KitProfile
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more