Pvd

Struct Pvd 

Source
pub struct Pvd { /* private fields */ }
Expand description

A new type wrapper for PxPvd.

Implementations§

Source§

impl Pvd

Source

pub fn connect( &mut self, transport: &mut PvdTransport, flags: InstrumentationFlags, ) -> bool

Connect the visual debugger over the provided transport. Returns true if the connection succeded.

Source

pub fn disconnect(&mut self)

Disconnect from the transport.

Source

pub fn is_connected(&mut self, use_cached_status: bool) -> bool

Check if the Pvd is connected. The cached status may be up to one frame out of date. When use_cached_status is false, the low-level status is checked which requires locking the network stream.

Source

pub fn get_transport(&mut self) -> Option<&mut PvdTransport>

Get the transport connected to the Pvd, if there is one.

Trait Implementations§

Source§

impl Class<PxPvd> for Pvd

Source§

fn as_ptr(&self) -> *const PxPvd

Returns a raw const pointer to the wrapped type. Retrieving a raw pointer is safe. However, pretty much any use of a raw pointer is unsafe. In particular: this pointer should not be used to construct a second owning wrapper around the pointer.
Source§

fn as_mut_ptr(&mut self) -> *mut PxPvd

Returns a raw mut pointer to the wrapped type. Retrieving a raw pointer is safe. However, pretty much any use of a raw pointer is unsafe. In particular: this pointer should not be used to construct a second owning wrapper around the pointer.
Source§

impl Drop for Pvd

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl Send for Pvd

Source§

impl Sync for Pvd

Auto Trait Implementations§

§

impl Freeze for Pvd

§

impl RefUnwindSafe for Pvd

§

impl Unpin for Pvd

§

impl UnwindSafe for Pvd

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.