Docs.rs
  • workflow-websocket-0.3.2
    • workflow-websocket 0.3.2
    • Docs.rs crate page
    • MIT OR Apache-2.0
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • aspect
    • surinder83singh
    • Dependencies
      • async-std ^1.12.0 normal
      • async-trait ^0.1.61 normal
      • cfg-if ^1.0.0 normal
      • downcast-rs ^1.2.0 normal
      • futures ^0.3.25 normal
      • futures-util ^0.3.25 normal
      • regex ^1.5.5 normal
      • thiserror ^1.0.38 normal
      • triggered ^0.1.2 normal
      • wasm-bindgen ^0.2.83 normal
      • workflow-core ^0.3.2 normal
      • workflow-log ^0.3.2 normal
      • workflow-task ^0.3.2 normal
      • workflow-wasm ^0.3.2 normal
      • ahash ^0.8.2 normal
      • tokio ^1.24.2 normal
      • tokio-tungstenite ^0.18.0 normal
      • tungstenite ^0.18.0 normal
      • web-sys ^0.3.60 normal
      • js-sys ^0.3.60 normal
      • wasm-bindgen-futures ^0.4.33 normal
    • Versions
    • 49.54% of the crate is documented
  • Go to latest version
  • Platform
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • 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

Crate workflow_websocket

logo

Crate workflow_websocket

  • Version 0.3.2
  • All Items
  • Modules

Crates

  • workflow_websocket
?
Change settings

Crate workflow_websocket

source ·
Expand description

github crates.io docs.rs license

workflow-websocket crate provides async websocket client and server interfaces. The client interface operates uniformally in native and in the browser-WASM environment.

This crate allows you to design APIs that work in regular native rust applications and function the same in the browser. If used as a foundation for APIs, this crate makes APIs portable, allowing their use in native/command-line/desktop applications and web-applications alike.

  • client::WebSocket operates in browser-WASM or native/tokio-backed environment
  • server::WebSocketServer operates only in native/tokio-backed environment

Modules

client
async WebSocket client functionality (requires a browser (WASM) or tokio (native) executors)
server
async WebSocket server functionality (requires tokio executor)

Results

workflow_websocket::server::handshake
Module containing simple convenience handshake functions …
workflow_websocket::server::WebSocketHandler::handshake
Called after Self::connect(), after creating the …
workflow_websocket::client::Handshake
workflow_websocket::client::Handshake::handshake
workflow_websocket::client::options::Options::handshake
workflow_websocket::server::handshake::HandshakeFn
Handshake closure function type for greeting() handshake
workflow_websocket::client::HandshakeFn
workflow_websocket::client::HandshakeFnReturn
workflow_websocket::server::error::Error::MalformedHandshake
Indicates that the data received is not a valid handshake …
workflow_websocket::server::handshake::greeting
Simple greeting handshake where supplied closure receives …
No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.