Docs.rs
  • minetest-protocol-0.1.3
    • minetest-protocol 0.1.3
    • Docs.rs crate page
    • MIT
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • paradust7
    • Dependencies
      • anyhow ^1.0.69 normal
      • minetest-protocol-derive ^0.1.3 normal
      • miniz_oxide ^0.6.2 normal
      • rand ^0.8.5 normal
      • thiserror ^1.0.38 normal
      • tokio ^1.21.2 normal
      • tokio-util ^0.7.4 normal
      • zstd-safe ^6.0.4 normal
    • Versions
    • 4.09% of the crate is documented
  • Go to latest version
  • Platform
    • i686-unknown-linux-gnu
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
logo

logo

CommandRef

Required Methods

  • toclient_ref
  • toserver_ref

Implementors

In minetest_protocol::wire::command

?
Change settings

Trait minetest_protocol::wire::command::CommandRef

source ·
pub trait CommandRef: CommandProperties + Debug + Serialize + Deserialize {
    // Required methods
    fn toserver_ref(&self) -> Option<&ToServerCommand>;
    fn toclient_ref(&self) -> Option<&ToClientCommand>;
}

Required Methods§

source

fn toserver_ref(&self) -> Option<&ToServerCommand>

source

fn toclient_ref(&self) -> Option<&ToClientCommand>

Implementors§

source§

impl CommandRef for Command

source§

impl CommandRef for ToClientCommand

source§

impl CommandRef for ToServerCommand