Docs.rs
  • naia-shared-0.20.0
    • naia-shared 0.20.0
    • Docs.rs crate page
    • MIT OR Apache-2.0
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • connorcarpenter
    • Dependencies
      • bevy_ecs ^0.10 normal
      • cfg-if ^1.0 normal
      • js-sys ^0.3 normal
      • log ^0.4 normal
      • naia-derive ^0.19 normal
      • naia-serde ^0.18 normal
      • naia-socket-shared ^0.20 normal
      • zstd ^0.12.2 normal
    • Versions
    • 100% of the crate is documented
  • Go to latest version
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
logo

logo

NetEntityHandleConverter

Required Methods

  • handle_to_net_entity
  • net_entity_to_handle

Implementors

In naia_shared

?
Change settings

Trait naia_shared::NetEntityHandleConverter

source ·
pub trait NetEntityHandleConverter {
    // Required methods
    fn handle_to_net_entity(
        &self,
        entity_handle: &EntityHandle
    ) -> Result<OwnedNetEntity, EntityDoesNotExistError>;
    fn net_entity_to_handle(
        &self,
        net_entity: &OwnedNetEntity
    ) -> Result<EntityHandle, EntityDoesNotExistError>;
}

Required Methods§

source

fn handle_to_net_entity( &self, entity_handle: &EntityHandle ) -> Result<OwnedNetEntity, EntityDoesNotExistError>

source

fn net_entity_to_handle( &self, net_entity: &OwnedNetEntity ) -> Result<EntityHandle, EntityDoesNotExistError>

Implementors§

source§

impl NetEntityHandleConverter for FakeEntityConverter

source§

impl<'a, 'b, E: Copy + Eq + Hash> NetEntityHandleConverter for EntityConverter<'a, 'b, E>