Enum wireplumber::lua::LuaError
source · pub enum LuaError {
Custom(String),
Glib(Error),
Conversion(TryFromIntError),
Parse(ParseIntError),
Utf8(Utf8Error),
TypeMismatch(VariantTypeMismatchError),
UnsupportedType(Cow<'static, VariantTy>),
LengthMismatch {
actual: usize,
expected: usize,
},
}
Available on crate feature
lua
only.Variants§
Custom(String)
Glib(Error)
Conversion(TryFromIntError)
Parse(ParseIntError)
Utf8(Utf8Error)
TypeMismatch(VariantTypeMismatchError)
UnsupportedType(Cow<'static, VariantTy>)
LengthMismatch
Trait Implementations§
source§impl Error for LuaError
impl Error for LuaError
source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + 'static)>
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 Error for LuaError
impl Error for LuaError
source§fn invalid_length(actual: usize, expected: &dyn Expected) -> Self
fn invalid_length(actual: usize, expected: &dyn Expected) -> Self
Raised when deserializing a sequence or map and the input data contains
too many or too few elements. Read more
source§fn custom<T: Display>(msg: T) -> Self
fn custom<T: Display>(msg: T) -> Self
Raised when there is general error when deserializing a type. Read more
source§fn invalid_type(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
fn invalid_type(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
Raised when a
Deserialize
receives a type different from what it was
expecting. Read moresource§fn invalid_value(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
fn invalid_value(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
Raised when a
Deserialize
receives a value of the right type but that
is wrong for some other reason. Read moresource§fn unknown_variant(variant: &str, expected: &'static [&'static str]) -> Self
fn unknown_variant(variant: &str, expected: &'static [&'static str]) -> Self
Raised when a
Deserialize
enum type received a variant with an
unrecognized name.source§fn unknown_field(field: &str, expected: &'static [&'static str]) -> Self
fn unknown_field(field: &str, expected: &'static [&'static str]) -> Self
Raised when a
Deserialize
struct type received a field with an
unrecognized name.source§fn missing_field(field: &'static str) -> Self
fn missing_field(field: &'static str) -> Self
Raised when a
Deserialize
struct type expected to receive a required
field with a particular name but that field was not present in the
input.source§fn duplicate_field(field: &'static str) -> Self
fn duplicate_field(field: &'static str) -> Self
Raised when a
Deserialize
struct type received more than one of the
same field.source§impl From<Infallible> for LuaError
impl From<Infallible> for LuaError
source§fn from(v: Infallible) -> Self
fn from(v: Infallible) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for LuaError
impl From<ParseIntError> for LuaError
source§fn from(e: ParseIntError) -> Self
fn from(e: ParseIntError) -> Self
Converts to this type from the input type.
source§impl From<TryFromIntError> for LuaError
impl From<TryFromIntError> for LuaError
source§fn from(e: TryFromIntError) -> Self
fn from(e: TryFromIntError) -> Self
Converts to this type from the input type.
source§impl From<VariantTypeMismatchError> for LuaError
impl From<VariantTypeMismatchError> for LuaError
source§fn from(e: VariantTypeMismatchError) -> Self
fn from(e: VariantTypeMismatchError) -> Self
Converts to this type from the input type.
source§impl<'a, 'de, 'v> IntoDeserializer<'de, LuaError> for &'a LuaTable<'v>
impl<'a, 'de, 'v> IntoDeserializer<'de, LuaError> for &'a LuaTable<'v>
§type Deserializer = Deserializer<'v>
type Deserializer = Deserializer<'v>
The type of the deserializer being converted into.
source§fn into_deserializer(self) -> Self::Deserializer
fn into_deserializer(self) -> Self::Deserializer
Convert this value into a deserializer.
source§impl<'a, 'de, 'v> IntoDeserializer<'de, LuaError> for &'a LuaVariant<'v>
impl<'a, 'de, 'v> IntoDeserializer<'de, LuaError> for &'a LuaVariant<'v>
§type Deserializer = Deserializer<'v>
type Deserializer = Deserializer<'v>
The type of the deserializer being converted into.
source§fn into_deserializer(self) -> Self::Deserializer
fn into_deserializer(self) -> Self::Deserializer
Convert this value into a deserializer.
source§impl<'de, 'v> IntoDeserializer<'de, LuaError> for LuaTable<'v>
impl<'de, 'v> IntoDeserializer<'de, LuaError> for LuaTable<'v>
§type Deserializer = Deserializer<'v>
type Deserializer = Deserializer<'v>
The type of the deserializer being converted into.
source§fn into_deserializer(self) -> Self::Deserializer
fn into_deserializer(self) -> Self::Deserializer
Convert this value into a deserializer.
source§impl<'de, 'v> IntoDeserializer<'de, LuaError> for LuaVariant<'v>
impl<'de, 'v> IntoDeserializer<'de, LuaError> for LuaVariant<'v>
§type Deserializer = Deserializer<'v>
type Deserializer = Deserializer<'v>
The type of the deserializer being converted into.
source§fn into_deserializer(self) -> Self::Deserializer
fn into_deserializer(self) -> Self::Deserializer
Convert this value into a deserializer.
source§impl PartialEq for LuaError
impl PartialEq for LuaError
impl Eq for LuaError
impl StructuralPartialEq for LuaError
Auto Trait Implementations§
impl Freeze for LuaError
impl RefUnwindSafe for LuaError
impl Send for LuaError
impl Sync for LuaError
impl Unpin for LuaError
impl UnwindSafe for LuaError
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