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
Starts a physics server within the process and connects without a transport layer.
Creates a physics server with a graphical frontend and communicates with it.
can be used together with sharedMemory
can be used together with sharedMemory
connects to a remote PhysicsServer
via TCP.
See graphics_server.rs
and graphics_client.rs
demo
Show fields
get access to an already running PhysicsClient which was created with GuiServer
or SharedMemoryServer
Show fields
Show fields
Auto Trait Implementations
impl<'a> RefUnwindSafe for Mode<'a>
impl<'a> UnwindSafe for Mode<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
pub fn vzip(self) -> V