Skip to main content

TokenOutput

Trait TokenOutput 

Source
pub trait TokenOutput: Clone {
    type Error: Error + Send + Sync + 'static;

    // Required method
    fn token_id(&self) -> Result<u32, Self::Error>;
}
Expand description

Backend-owned generated token that exposes only its portable token id.

Required Associated Types§

Source

type Error: Error + Send + Sync + 'static

Error produced while observing the token value.

Required Methods§

Source

fn token_id(&self) -> Result<u32, Self::Error>

Waits only as required to read this token’s canonical vocabulary id.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl TokenOutput for u32

Source§

type Error = !

Source§

fn token_id(&self) -> Result<u32, Self::Error>

Implementors§