Struct psvr::Psvr[][src]

pub struct Psvr { /* fields omitted */ }

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]

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,