Docs.rs
  • tonlib-core-0.20.0
    • tonlib-core 0.20.0
    • Docs.rs crate page
    • MIT
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • ruslanracheev
    • Dependencies
      • base64 ^0.22 normal
      • bitstream-io ^2.2 normal
      • crc ^3 normal
      • hex ^0.4 normal
      • hmac ^0.12 normal
      • lazy_static ^1 normal
      • nacl ^0.5 normal
      • num-bigint ^0.4 normal
      • num-traits ^0.2 normal
      • pbkdf2 ^0.12 normal
      • serde ^1 normal
      • serde_json ^1 normal
      • sha2 ^0.10 normal
      • thiserror ^1 normal
      • anyhow ^1 dev
      • tokio-test ^0.4 dev
    • Versions
    • 1.72% of the crate is documented
  • This release has been yanked, 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

tonlib_core0.20.0

TonMessage

Required Methods

  • build
  • parse

Dyn Compatibility

Implementors

In tonlib_core::message

tonlib_core::message

Trait TonMessage

source
pub trait TonMessage: Sized {
    // Required methods
    fn build(&self) -> Result<Cell, TonMessageError>;
    fn parse(cell: &Cell) -> Result<Self, TonMessageError>;
}

Required Methods§

source

fn build(&self) -> Result<Cell, TonMessageError>

source

fn parse(cell: &Cell) -> Result<Self, TonMessageError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

source§

impl TonMessage for Cell

source§

impl TonMessage for JettonBurnMessage

source§

impl TonMessage for JettonTransferMessage

source§

impl TonMessage for JettonTransferNotificationMessage

source§

impl TonMessage for NftExcessesMessage

source§

impl TonMessage for NftGetStaticDataMessage

source§

impl TonMessage for NftOwnershipAssignedMessage

source§

impl TonMessage for NftReportStaticDataMessage

source§

impl TonMessage for NftTransferMessage

source§

impl TonMessage for OwnerInfoMessage

source§

impl TonMessage for OwnershipProofMessage

source§

impl TonMessage for ProveOwnershipMessage

source§

impl TonMessage for RequestOwnerMessage

source§

impl TonMessage for SbtDestroyMessage

source§

impl TonMessage for SbtRevokeMessage

source§

impl TonMessage for TransferMessage