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>,
    },
}

Ways to connect to physics clients.

Variants (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

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

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

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

impl<'a> RefUnwindSafe for Mode<'a>

impl<'a> Send for Mode<'a>

impl<'a> Sync for Mode<'a>

impl<'a> Unpin for Mode<'a>

impl<'a> UnwindSafe for Mode<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,