Skip to main content

TSG

Struct TSG 

Source
pub struct TSG;
Expand description

Ternsig error code constants.

Usage: ErrorCode::new("TSG", TSG::PREFLIGHT_FILE_NOT_FOUND)

Implementations§

Source§

impl TSG

Source

pub const UNKNOWN: u16 = 0x0001

Source

pub const NOT_IMPLEMENTED: u16 = 0x0002

Source

pub const INTERNAL: u16 = 0x0003

Source

pub const TIMEOUT: u16 = 0x0004

Source

pub const INVALID_STATE: u16 = 0x0005

Source

pub const IO_ERROR: u16 = 0x0006

Source

pub const PERMISSION_DENIED: u16 = 0x0007

Source

pub const LOCK_POISONED: u16 = 0x0008

Source

pub const PREFLIGHT_FAILED: u16 = 0x0100

Source

pub const PREFLIGHT_FILE_NOT_FOUND: u16 = 0x0101

Source

pub const PREFLIGHT_FILE_CORRUPT: u16 = 0x0102

Source

pub const PREFLIGHT_DIR_NOT_FOUND: u16 = 0x0103

Source

pub const PREFLIGHT_DIR_NOT_WRITABLE: u16 = 0x0104

Source

pub const PREFLIGHT_FIRMWARE_PARSE: u16 = 0x0105

Source

pub const PREFLIGHT_FIRMWARE_EMPTY: u16 = 0x0106

Source

pub const PREFLIGHT_CART_INVALID: u16 = 0x0107

Source

pub const PREFLIGHT_ENGRAM_INVALID: u16 = 0x0108

Source

pub const PREFLIGHT_SPOOL_INVALID: u16 = 0x0109

Source

pub const PREFLIGHT_RESOURCE: u16 = 0x010A

Source

pub const BOOTSTRAP_FAILED: u16 = 0x0200

Source

pub const BOOTSTRAP_CART_CREATE: u16 = 0x0201

Source

pub const BOOTSTRAP_DIR_CREATE: u16 = 0x0202

Source

pub const BOOTSTRAP_CART_NOT_FOUND: u16 = 0x0203

Source

pub const BOOTSTRAP_WAL_REPLAY: u16 = 0x0204

Source

pub const BOOTSTRAP_ENGRAM_LOAD: u16 = 0x0205

Source

pub const BOOTSTRAP_BANK_INIT: u16 = 0x0206

Source

pub const BOOTSTRAP_STORAGE_OPEN: u16 = 0x0207

Source

pub const IGNITION_FAILED: u16 = 0x0300

Source

pub const IGNITION_STEP_FAILED: u16 = 0x0301

Source

pub const IGNITION_STEP_TIMEOUT: u16 = 0x0302

Source

pub const IGNITION_TRANSITION_REJECTED: u16 = 0x0303

Source

pub const STORAGE_CART_READ: u16 = 0x0400

Source

pub const STORAGE_CART_WRITE: u16 = 0x0401

Source

pub const STORAGE_ENGRAM_READ: u16 = 0x0402

Source

pub const STORAGE_ENGRAM_NOT_LOADED: u16 = 0x0403

Source

pub const STORAGE_SPOOL_WRITE: u16 = 0x0404

Source

pub const STORAGE_SPOOL_READ: u16 = 0x0405

Source

pub const STORAGE_WAL_WRITE: u16 = 0x0406

Source

pub const STORAGE_WAL_FINALIZE: u16 = 0x0407

Source

pub const STORAGE_BANK: u16 = 0x0408

Source

pub const STORAGE_LOCK_POISONED: u16 = 0x0409

Source

pub const LIFECYCLE_INVALID_TRANSITION: u16 = 0x0500

Source

pub const LIFECYCLE_SHUTDOWN_FAILED: u16 = 0x0501

Source

pub const LIFECYCLE_TICK_OVERFLOW: u16 = 0x0502

Source

pub const REGISTRY_DUPLICATE_PREFIX: u16 = 0x0600

Source

pub const REGISTRY_UNKNOWN_PREFIX: u16 = 0x0601

Source

pub const CRITICAL_FAILURE: u16 = 0xF000

Source

pub const PANIC: u16 = 0xFFFF

Auto Trait Implementations§

§

impl Forget for TSG

§

impl Freeze for TSG

§

impl Move for TSG

§

impl RefUnwindSafe for TSG

§

impl Send for TSG

§

impl Sync for TSG

§

impl Unpin for TSG

§

impl UnsafeUnpin for TSG

§

impl UnwindSafe for TSG

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more