mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-06-02 23:29:34 +00:00
BREAKING CHANGE: LEZ crates have been moved from top-level directories into
a dedicated `lez/` subdirectory. The following crates were relocated:
common → lez/common
indexer → lez/indexer
explorer_service→ lez/explorer_service
keycard_wallet → lez/keycard_wallet
mempool → lez/mempool
sequencer → lez/sequencer
storage → lez/storage
testnet_initial_state → lez/testnet_initial_state
wallet → lez/wallet
wallet-ffi → lez/wallet-ffi
Any external tooling, scripts, or paths referencing these crates at their
previous top-level locations must be updated.
24 lines
449 B
Rust
24 lines
449 B
Rust
#[derive(Debug, Default, PartialEq, Eq)]
|
|
#[repr(C)]
|
|
pub enum OperationStatus {
|
|
#[default]
|
|
Ok = 0x0,
|
|
NullPointer = 0x1,
|
|
InitializationError = 0x2,
|
|
ClientError = 0x3,
|
|
}
|
|
|
|
impl OperationStatus {
|
|
#[must_use]
|
|
#[unsafe(no_mangle)]
|
|
pub extern "C" fn is_ok(&self) -> bool {
|
|
*self == Self::Ok
|
|
}
|
|
|
|
#[must_use]
|
|
#[unsafe(no_mangle)]
|
|
pub extern "C" fn is_error(&self) -> bool {
|
|
!self.is_ok()
|
|
}
|
|
}
|