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

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

Implementations

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.

See description of new

Connect the Pvd to the PvdTransport.

Disconnect the Pvd it’s transport.

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.

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

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

Trait Implementations

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. Read more

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. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.