Docs.rs
  • ambient_api_core-0.3.1
    • ambient_api_core 0.3.1
    • Permalink
    • Docs.rs crate page
    • MIT OR Apache-2.0
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • FredrikNoren
    • github:ambientrun:owners
    • Dependencies
      • ambient_api_macros ^0.3.1 normal
      • ambient_package_rt ^0.3.1 normal
      • ambient_shared_types ^0.3.1 normal
      • anyhow ^1.0 normal
      • byteorder ^1.4 normal
      • data-encoding ^2.3.3 normal
      • futures ^0.3 normal
      • glam ^0.24.0 normal
      • indexmap ^2.0 normal
      • once_cell ^1.15.0 normal
      • paste ^1.0 normal
      • rand ^0.8.5 normal
      • serde ^1.0 normal
      • thiserror ^1.0 normal
      • ulid ^1.0.0 normal
      • wit-bindgen ^0.9.0 normal
    • Versions
    • 100% of the crate is documented
  • Platform
    • wasm32-wasi
  • 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

ambient_api_core0.3.1

RuntimeMessage

Provided Methods

  • subscribe

Object Safety

Implementors

In ambient_api_core::message

?
Change settings

Trait ambient_api_core::message::RuntimeMessage

source ·
pub trait RuntimeMessage: Message {
    // Provided method
    fn subscribe<R: CallbackReturn>(
        callback: impl FnMut(Self) -> R + 'static
    ) -> Listener { ... }
}
Expand description

Implemented by all messages sent from the runtime.

Provided Methods§

source

fn subscribe<R: CallbackReturn>( callback: impl FnMut(Self) -> R + 'static ) -> Listener

Subscribes to this Message. Wrapper around self::subscribe.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl RuntimeMessage for ClipboardGet

source§

impl RuntimeMessage for ColliderLoads

source§

impl RuntimeMessage for Collision

source§

impl RuntimeMessage for Frame

source§

impl RuntimeMessage for HttpResponse

source§

impl RuntimeMessage for ModuleLoad

source§

impl RuntimeMessage for ModuleUnload

source§

impl RuntimeMessage for WasmRebuild

source§

impl RuntimeMessage for WindowClose

source§

impl RuntimeMessage for WindowCursorLockChange

source§

impl RuntimeMessage for WindowFocusChange

source§

impl RuntimeMessage for WindowKeyboardCharacter

source§

impl RuntimeMessage for WindowKeyboardInput

source§

impl RuntimeMessage for WindowKeyboardModifiersChange

source§

impl RuntimeMessage for WindowMouseInput

source§

impl RuntimeMessage for WindowMouseMotion

source§

impl RuntimeMessage for WindowMouseWheel

source§

impl RuntimeMessage for PackageLoadFailure

source§

impl RuntimeMessage for PackageLoadSuccess