Enum rubullet::Mode[][src]

#[non_exhaustive]
pub enum Mode<'a> {
    Direct,
    Gui,
    GuiMainThread,
    GuiServer,
    SharedMemoryServer,
    SharedMemoryGui,
    GraphicsServerTcp {
        hostname: &'a str,
        port: Option<u16>,
    },
    SharedMemory,
    Udp {
        hostname: &'a str,
        port: Option<u16>,
    },
    Tcp {
        hostname: &'a str,
        port: Option<u16>,
    },
}
Expand description

Ways to connect to physics clients.

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Direct

Starts a physics server within the process and connects without a transport layer.

Gui

Creates a physics server with a graphical frontend and communicates with it.

GuiMainThread
GuiServer

can be used together with sharedMemory

SharedMemoryServer

can be used together with sharedMemory

SharedMemoryGui
GraphicsServerTcp

connects to a remote PhysicsServer via TCP. See graphics_server.rs and graphics_client.rs demo

Show fields

Fields of GraphicsServerTcp

hostname: &'a str

hostname of the server.

port: Option<u16>

port on which the server listens. None is for the default port 6667

SharedMemory

get access to an already running PhysicsClient which was created with GuiServer or SharedMemoryServer

Udp
Show fields

Fields of Udp

hostname: &'a str

hostname of the server.

port: Option<u16>

port on which the server listens. None is for the default port 1234

Tcp
Show fields

Fields of Tcp

hostname: &'a str

hostname of the server.

port: Option<u16>

port on which the server listens. None is for the default port 6667

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

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

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.