pub struct VisualDebugger { /* private fields */ }
Expand description

Combines the Pvd and it’s current PvdTransport, if there is one.

Implementations§

source§

impl VisualDebugger

source

pub fn new(foundation: &mut impl Foundation, port: i32) -> Option<Self>

Create a new VisualDebugger instance, a utility class that combines the TCP setup and the Pvd into one object. The port default for the PVD program is port 5425, so it is suggested to use this unless you’re explicitly changing the other one as well.

This function internally calls new_with_timeout with a default timeout of 10 ms.

source

pub fn new_remote( foundation: &mut impl Foundation, host: &str, port: i32 ) -> Option<Self>

Create a new VisualDebugger instance, a utility class that combines the TCP setup and the Pvd into one object. The port default for the PVD program is port 5425, so it is suggested to use this unless you’re explicitly changing the other one as well.

This function internally calls new_with_timeout with a default timeout of 10 ms.

source

pub fn new_with_timeout( foundation: &mut impl Foundation, host: &str, port: i32, timeout: u32 ) -> Option<Self>

See description of new

source

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

Connect the Pvd to the PvdTransport.

source

pub fn disconnect(&mut self)

Disconnect the Pvd it’s 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.

source

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

Connect to a new transport, disconnecting from and dropping the old one. Returns true if the connection succeeded.

Trait Implementations§

source§

impl Class<PxPvd> for VisualDebugger

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 VisualDebugger

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.