Skip to main content

Module prelude

Module prelude 

Source
Expand description

The names most marque code wants from this crate.

Glob-import this module (use marque_utils::prelude::*) to bring the workspace Error / Result types, the ContextExt combinators, and the client_* / internal_* bail macros into scope.

Re-exports§

pub use crate::error::ApiError;
pub use crate::error::invariance_violation;
pub use crate::error::ContextExt;
pub use crate::error::Error;
pub use crate::error::Result;

Macros§

client_bail
Returns early with a formatted Error::client.
client_error
Builds a formatted Error::client without returning.
internal_bail
Returns early with a formatted Error::internal_msg.
internal_error
Builds a formatted Error::internal_msg without returning.