Struct crystalorb_bevy_networking_turbulence::WrappedNetworkResource [−][src]
pub struct WrappedNetworkResource<'a>(pub &'a mut NetworkResource);
Trait Implementations
type ConnectionType = WrappedConnection<'b>
type ConnectionType = WrappedConnection<'b>
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.
fn connections<'c>(
&'c mut self
) -> Box<dyn Iterator<Item = (usize, WrappedConnection<'c>)> + 'c>
[src]
fn connections<'c>(
&'c mut self
) -> Box<dyn Iterator<Item = (usize, WrappedConnection<'c>)> + 'c>
[src]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
fn broadcast_message<MessageType>(&mut self, message: MessageType) where
MessageType: Debug + Clone + Serialize + DeserializeOwned + Send + Sync + 'static,
[src]
fn broadcast_message<MessageType>(&mut self, message: MessageType) where
MessageType: Debug + Clone + Serialize + DeserializeOwned + Send + Sync + 'static,
[src]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
impl<'a> !RefUnwindSafe for WrappedNetworkResource<'a>
impl<'a> Send for WrappedNetworkResource<'a>
impl<'a> Sync for WrappedNetworkResource<'a>
impl<'a> Unpin for WrappedNetworkResource<'a>
impl<'a> !UnwindSafe for WrappedNetworkResource<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
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
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
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
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
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
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V