pub struct Voxelize;Implementations
sourceimpl Voxelize
impl Voxelize
sourcepub fn run(server: Server)
pub fn run(server: Server)
Run a voxelize server instance. This blocks the main thread, as the game loop is essentially a while loop
running indefinitely. Keep in mind that the server instance passed in isn’t a borrow, so Voxelize::run
takes ownership of the server.
Example
// Run a server without any worlds.
let server = Server::new().port(4000).build();
Voxelize::run(server);Auto Trait Implementations
impl RefUnwindSafe for Voxelize
impl Send for Voxelize
impl Sync for Voxelize
impl Unpin for Voxelize
impl UnwindSafe for Voxelize
Blanket Implementations
impl<T> Any for T where
T: Any,
impl<T> Any for T where
T: Any,
fn get_type_id(&self) -> TypeId
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more