Enum gstd::errors::SimpleProgramCreationError
source · #[repr(u8)]pub enum SimpleProgramCreationError {
CodeNotExists = 0,
Unsupported = 255,
}
Expand description
Simplified error occurred during program creation.
Variants§
CodeNotExists = 0
Given code id for program creation doesn’t exist.
Unsupported = 255
Unsupported reason of program creation error. Variant exists for backward compatibility.
Trait Implementations§
source§impl Clone for SimpleProgramCreationError
impl Clone for SimpleProgramCreationError
source§fn clone(&self) -> SimpleProgramCreationError
fn clone(&self) -> SimpleProgramCreationError
Returns a copy 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 SimpleProgramCreationError
impl Debug for SimpleProgramCreationError
source§impl Decode for SimpleProgramCreationError
impl Decode for SimpleProgramCreationError
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<SimpleProgramCreationError, Error>where
__CodecInputEdqy: Input,
fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<SimpleProgramCreationError, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.
§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
§fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
Attempt to skip the encoded value from input. Read more
§fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
source§impl Default for SimpleProgramCreationError
impl Default for SimpleProgramCreationError
source§fn default() -> SimpleProgramCreationError
fn default() -> SimpleProgramCreationError
Returns the “default value” for a type. Read more
source§impl Display for SimpleProgramCreationError
impl Display for SimpleProgramCreationError
source§impl Encode for SimpleProgramCreationError
impl Encode for SimpleProgramCreationError
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
source§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.
§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl From<SimpleProgramCreationError> for ErrorReplyReason
impl From<SimpleProgramCreationError> for ErrorReplyReason
source§fn from(original: SimpleProgramCreationError) -> ErrorReplyReason
fn from(original: SimpleProgramCreationError) -> ErrorReplyReason
Converts to this type from the input type.
source§impl Hash for SimpleProgramCreationError
impl Hash for SimpleProgramCreationError
source§impl Ord for SimpleProgramCreationError
impl Ord for SimpleProgramCreationError
source§fn cmp(&self, other: &SimpleProgramCreationError) -> Ordering
fn cmp(&self, other: &SimpleProgramCreationError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialOrd for SimpleProgramCreationError
impl PartialOrd for SimpleProgramCreationError
source§impl Sequence for SimpleProgramCreationError
impl Sequence for SimpleProgramCreationError
source§const CARDINALITY: usize = 2usize
const CARDINALITY: usize = 2usize
Number of values of type
Self
. Read moresource§fn next(&self) -> Option<SimpleProgramCreationError>
fn next(&self) -> Option<SimpleProgramCreationError>
source§fn previous(&self) -> Option<SimpleProgramCreationError>
fn previous(&self) -> Option<SimpleProgramCreationError>
impl Copy for SimpleProgramCreationError
impl EncodeLike for SimpleProgramCreationError
impl Eq for SimpleProgramCreationError
impl StructuralPartialEq for SimpleProgramCreationError
Auto Trait Implementations§
impl Freeze for SimpleProgramCreationError
impl RefUnwindSafe for SimpleProgramCreationError
impl Send for SimpleProgramCreationError
impl Sync for SimpleProgramCreationError
impl Unpin for SimpleProgramCreationError
impl UnwindSafe for SimpleProgramCreationError
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> KeyedVec for Twhere
T: Codec,
impl<T> KeyedVec for Twhere
T: Codec,
§fn to_keyed_vec(&self, prepend_key: &[u8]) -> Vec<u8>
fn to_keyed_vec(&self, prepend_key: &[u8]) -> Vec<u8>
Return an encoding of
Self
prepended by given slice.