Struct flaker::Flaker [] [src]

pub struct Flaker { /* fields omitted */ }

Methods

impl Flaker
[src]

Returns a new Flaker based on the specified identifier

Arguments

  • identifier - A 6 byte vec that provides some arbitrary identification.

Remarks

This is a convenience function that converts the identifier vec into a 6 byte array. Where possible, prefer the array and use new.

Note: This also assumes the flaker is being created on a little endian CPU.

Returns a new Flaker based on the specified identifier

Arguments

  • identifier - A 6 byte vec that provides some arbitrary identification.
  • little_endian - For specifying endianness. This is important for byte order when constructing the flake.

Generate a new ID