[][src]Struct amethyst_network::NetworkBundle

pub struct NetworkBundle<T> { /* fields omitted */ }

A convenience bundle to create the infrastructure needed to send and receive network messages.

Methods

impl<T> NetworkBundle<T>[src]

pub fn new(udp_socket_addr: SocketAddr) -> Self[src]

Creates a new NetworkBundle.

receive_addr: this is the address on which we will receive incoming packets. send_addr: this is the address from which we will send outgoing packets.

pub fn from_config(config: ServerConfig) -> NetworkBundle<T>[src]

Construct a new NetworkBundle with the specified configuration.

Trait Implementations

impl<'a, 'b, T> SystemBundle<'a, 'b> for NetworkBundle<T> where
    T: Send + Sync + PartialEq + Serialize + Clone + DeserializeOwned + 'static, 
[src]

fn build(
    self,
    _world: &mut World,
    builder: &mut DispatcherBuilder
) -> Result<(), Error>
[src]

Build the networking bundle by adding the networking system to the application.

Auto Trait Implementations

impl<T> Sync for NetworkBundle<T> where
    T: Sync

impl<T> Send for NetworkBundle<T> where
    T: Send

impl<T> Unpin for NetworkBundle<T> where
    T: Unpin

impl<T> UnwindSafe for NetworkBundle<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for NetworkBundle<T> where
    T: RefUnwindSafe

Blanket Implementations

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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> Any for T where
    T: Any

impl<T> Resource for T where
    T: Any + Send + Sync
[src]

impl<T> Event for T where
    T: Send + Sync + 'static, 
[src]