Crate fbinit

Source
Expand description

Provides FacebookInit structure that must be used in Facebook code that requires pre-initialization, e.g. like C++’s logging.

Structs§

FacebookInit
This type is a token that allows code to prove initFacebook has been called. A function can require this proof by taking _fb: FacebookInit as an argument.

Functions§

assume_init
Produces a proof that initFacebook has been called, without actually calling initFacebook.
expect_init
Produces proof that initFacebook has been called, or panics otherwise.
perform_init
Initializes fbinit, returning proof that initFacebook was called.
was_performed
Returns if facebookInit has been performed.

Attribute Macros§

main
test