pub enum ScriptError {
Show 15 variants
Return,
StackOverflow,
NonUnitLengthStack,
StackUnderflow,
IncompatibleTypes,
ValueExceedsBounds,
InvalidOpcode,
MissingOpcode,
InvalidSignature,
InvalidInput,
InvalidData,
VerifyFailed,
InvalidDigest,
CompareFailed(String),
MaxSizeVecError(MaxSizeVecError),
}Variants§
Return
StackOverflow
NonUnitLengthStack
StackUnderflow
IncompatibleTypes
ValueExceedsBounds
InvalidOpcode
MissingOpcode
InvalidSignature
InvalidInput
InvalidData
VerifyFailed
InvalidDigest
CompareFailed(String)
MaxSizeVecError(MaxSizeVecError)
Implementations§
Source§impl ScriptError
impl ScriptError
pub fn to_std_io_error(self) -> Error
Trait Implementations§
Source§impl Clone for ScriptError
impl Clone for ScriptError
Source§fn clone(&self) -> ScriptError
fn clone(&self) -> ScriptError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScriptError
impl Debug for ScriptError
Source§impl<'de> Deserialize<'de> for ScriptError
impl<'de> Deserialize<'de> for ScriptError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ScriptError
impl Display for ScriptError
Source§impl Error for ScriptError
impl Error for ScriptError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ByteArrayError> for ScriptError
impl From<ByteArrayError> for ScriptError
Source§fn from(_err: ByteArrayError) -> ScriptError
fn from(_err: ByteArrayError) -> ScriptError
Converts to this type from the input type.
Source§impl From<MaxSizeVecError> for ScriptError
impl From<MaxSizeVecError> for ScriptError
Source§fn from(source: MaxSizeVecError) -> Self
fn from(source: MaxSizeVecError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for ScriptError
impl From<TryFromIntError> for ScriptError
Source§fn from(_err: TryFromIntError) -> ScriptError
fn from(_err: TryFromIntError) -> ScriptError
Converts to this type from the input type.
Source§impl PartialEq for ScriptError
impl PartialEq for ScriptError
Source§impl Serialize for ScriptError
impl Serialize for ScriptError
impl Eq for ScriptError
impl StructuralPartialEq for ScriptError
Auto Trait Implementations§
impl Freeze for ScriptError
impl RefUnwindSafe for ScriptError
impl Send for ScriptError
impl Sync for ScriptError
impl Unpin for ScriptError
impl UnwindSafe for ScriptError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreSource§impl<T> MessageFormat for Twhere
T: DeserializeOwned + Serialize,
impl<T> MessageFormat for Twhere
T: DeserializeOwned + Serialize,
Source§fn from_binary(msg: &[u8]) -> Result<T, MessageFormatError>
fn from_binary(msg: &[u8]) -> Result<T, MessageFormatError>
Convert from binary.
Source§fn from_base64(msg: &str) -> Result<T, MessageFormatError>
fn from_base64(msg: &str) -> Result<T, MessageFormatError>
Convert from base64.