[][src]Trait wascc_actor::Extras

pub trait Extras {
    fn get_random(&self, min: u32, max: u32) -> Result<u32>;
fn get_guid(&self) -> Result<String>;
fn get_sequence_number(&self) -> Result<u64>; }

Miscellaneous utilities that are often needed regardless of capability providers

Required methods

fn get_random(&self, min: u32, max: u32) -> Result<u32>

Obtains a random number using the host's random number generator

fn get_guid(&self) -> Result<String>

Obtains a string version of a v4 GUID

fn get_sequence_number(&self) -> Result<u64>

Obtains a monotonically increasing sequence number. This number is only unique per host, and not globally unique.

Loading content...

Implementors

impl Extras for DefaultExtras[src]

Loading content...