Enum lwk::LwkError

source ·
pub enum LwkError {
    Generic {
        msg: String,
    },
    PoisonError {
        msg: String,
    },
}
Expand description

Possible errors emitted

Variants§

§

Generic

Fields

§

PoisonError

Fields

Trait Implementations§

source§

impl<UT> ConvertError<UT> for LwkError

source§

impl Debug for LwkError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for LwkError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for LwkError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl<T> FfiConverter<T> for LwkError

§

type FfiType = RustBuffer

The low-level type used for passing values of this type over the FFI. Read more
source§

fn lower(v: Self) -> RustBuffer

Lower a rust value of the target type, into an FFI value of type Self::FfiType. Read more
source§

fn try_lift(buf: RustBuffer) -> Result<Self>

Lift a rust value of the target type, from an FFI value of type Self::FfiType. Read more
source§

fn write(obj: Self, buf: &mut Vec<u8>)

Write a rust value into a buffer, to send over the FFI in serialized form. Read more
source§

fn try_read(buf: &mut &[u8]) -> Result<Self>

Read a rust value from a buffer, received over the FFI in serialized form. Read more
source§

const TYPE_ID_META: MetadataBuffer = _

Type ID metadata, serialized into a MetadataBuffer. Read more
source§

impl From<&str> for LwkError

source§

fn from(msg: &str) -> Self

Converts to this type from the input type.
source§

impl From<AddressError> for LwkError

source§

fn from(value: AddressError) -> Self

Converts to this type from the input type.
source§

impl From<Error> for LwkError

source§

fn from(value: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for LwkError

source§

fn from(value: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for LwkError

source§

fn from(value: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for LwkError

source§

fn from(value: Error) -> Self

Converts to this type from the input type.
source§

impl From<HexToArrayError> for LwkError

source§

fn from(value: HexToArrayError) -> Self

Converts to this type from the input type.
source§

impl From<HexToBytesError> for LwkError

source§

fn from(value: HexToBytesError) -> Self

Converts to this type from the input type.
source§

impl From<LwkError> for PersistError

source§

fn from(e: LwkError) -> Self

Converts to this type from the input type.
source§

impl From<NewError> for LwkError

source§

fn from(value: NewError) -> Self

Converts to this type from the input type.
source§

impl From<ParseError> for LwkError

source§

fn from(value: ParseError) -> Self

Converts to this type from the input type.
source§

impl From<ParseOutPointError> for LwkError

source§

fn from(value: ParseOutPointError) -> Self

Converts to this type from the input type.
source§

impl<T> From<PoisonError<MutexGuard<'_, T>>> for LwkError

source§

fn from(e: PoisonError<MutexGuard<'_, T>>) -> Self

Converts to this type from the input type.
source§

impl From<QrError> for LwkError

source§

fn from(value: QrError) -> Self

Converts to this type from the input type.
source§

impl From<SignError> for LwkError

source§

fn from(value: SignError) -> Self

Converts to this type from the input type.
source§

impl From<String> for LwkError

source§

fn from(msg: String) -> Self

Converts to this type from the input type.
source§

impl<UT> Lift<UT> for LwkError

§

type FfiType = <LwkError as FfiConverter<UT>>::FfiType

source§

fn try_lift(v: Self::FfiType) -> Result<Self>

source§

fn try_read(buf: &mut &[u8]) -> Result<Self>

source§

const TYPE_ID_META: MetadataBuffer = _

source§

fn try_lift_from_rust_buffer(v: RustBuffer) -> Result<Self, Error>

Convenience method
source§

impl<UT> LiftRef<UT> for LwkError

source§

impl<UT> LiftReturn<UT> for LwkError

source§

fn lift_callback_return(buf: RustBuffer) -> Self

Lift a Rust value for a callback interface method result
source§

const TYPE_ID_META: MetadataBuffer = _

source§

fn lift_callback_error(_buf: RustBuffer) -> Self

Lift a Rust value for a callback interface method error result Read more
source§

fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self

Lift a Rust value for an unexpected callback interface error Read more
source§

impl<UT> Lower<UT> for LwkError

§

type FfiType = <LwkError as FfiConverter<UT>>::FfiType

source§

fn lower(obj: Self) -> Self::FfiType

source§

fn write(obj: Self, buf: &mut Vec<u8>)

source§

const TYPE_ID_META: MetadataBuffer = _

source§

fn lower_into_rust_buffer(obj: Self) -> RustBuffer

Convenience method
source§

impl<UT> LowerReturn<UT> for LwkError

§

type ReturnType = <LwkError as Lower<UT>>::FfiType

The type that should be returned by scaffolding functions for this type. Read more
source§

fn lower_return(obj: Self) -> Result<Self::ReturnType, RustBuffer>

Lower this value for scaffolding function return Read more
source§

const TYPE_ID_META: MetadataBuffer = _

source§

fn handle_failed_lift(arg_name: &str, e: Error) -> Self

If possible, get a serialized error for failed argument lifts Read more

Auto Trait Implementations§

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> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

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

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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