Struct psvr::Psvr [−][src]
A PSVR device connected via USB.
'a'
is the lifetime
Implementations
impl Psvr
[src]
pub fn send_command<C>(&mut self, command: &C) -> Result<(), Error> where
C: Command,
[src]
C: Command,
Sends a command.
pub fn receive_sensor(&mut self) -> Result<Readout, Error>
[src]
Receives sensor data.
pub fn power_on(&mut self) -> Result<(), Error>
[src]
Powers on the PSVR.
pub fn power_off(&mut self) -> Result<(), Error>
[src]
Powers off the PSVR.
pub fn set_power(&mut self, on: bool) -> Result<(), Error>
[src]
Sets the state of the power.
pub fn vr_mode(&mut self) -> Result<(), Error>
[src]
pub fn vr_tracking(&mut self) -> Result<(), Error>
[src]
Enables VR trawcking.
pub fn close(self) -> Result<(), Error>
[src]
Powers off the PSVR and disconnects from it.
pub fn orientation(&self) -> Quaternion
[src]
Gets the orientation of the PSVR headset.
Auto Trait Implementations
impl RefUnwindSafe for Psvr
[src]
impl Send for Psvr
[src]
impl !Sync for Psvr
[src]
impl Unpin for Psvr
[src]
impl UnwindSafe for Psvr
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,