bravo

Contains types used by all modules in the Bravo package.

Types

Access specifiers for ETS tables. Affects how other processes can interact with the table.

pub type Access {
  Public
  Protected
  Private
}

Constructors

  • Public

    Any process can read or write to the USet.

  • Protected

    Any process can read the USet. Only the owner process can write to it.

  • Private

    Only the parent process can read or write to the USet.

The error type all Bravo functions use.

pub type BravoError {
  NonPositiveKeypos
  DecodeFailure
  ErlangError(String)
}

Constructors

  • NonPositiveKeypos

    Thrown if new is passed a keypos <= 0

  • DecodeFailure

    Thrown if file2tab isn’t able to successfully decode all elements in a table file.

  • ErlangError(String)

    Runtime error caught in FFI. A non-exhaustive list of possible causes:

    • new tried to create a table with the same name as another.
    • tab2file couldn’t create a file successfully.
    • file2tab tries to read non-ETS or corrupted data.
Search Document