Struct crystalorb_bevy_networking_turbulence::WrappedNetworkResource[][src]

pub struct WrappedNetworkResource<'a>(pub &'a mut NetworkResource);

Trait Implementations

The Connection structure that CrystalOrb will use to send/receive messages from a specific remote machine. This may probably be a wrapper to a mutable reference to some connection type that is used by your external networking library of choice, in which case a generic lifetime parameter is provided here that you can use. Read more

Get a specific connection given its connection handle.

Iterate through the available connections. For servers, this would be the list of current client connections that are still alive. For the client, this would only contain the connection to the server once the connection has been established. Read more

Optional: Send the given message to all active connections. A default implementation is already given that uses NetworkResource::connections and Connection::send. Read more

Optional: Send the given message to the given connection. A default implementation is already given that uses NetworkResource::get_connection and Connection::send. 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

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

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.