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
-
PublicAny process can read or write to the
USet. -
ProtectedAny process can read the
USet. Only the owner process can write to it. -
PrivateOnly 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
-
NonPositiveKeyposThrown if
newis passed akeypos<= 0 -
DecodeFailureThrown if
file2tabisn’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:
newtried to create a table with the same name as another.tab2filecouldn’t create a file successfully.file2tabtries to read non-ETS or corrupted data.