pub struct Pvd { /* private fields */ }Expand description
A new type wrapper for PxPvd.
Implementations§
Source§impl Pvd
impl Pvd
Sourcepub fn connect(
&mut self,
transport: &mut PvdTransport,
flags: InstrumentationFlags,
) -> bool
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.
Sourcepub fn disconnect(&mut self)
pub fn disconnect(&mut self)
Disconnect from the transport.
Sourcepub fn is_connected(&mut self, use_cached_status: bool) -> bool
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.
Sourcepub fn get_transport(&mut self) -> Option<&mut PvdTransport>
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
impl Class<PxPvd> for Pvd
Source§fn as_ptr(&self) -> *const PxPvd
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
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.
impl Send for Pvd
impl Sync for Pvd
Auto Trait Implementations§
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