pub enum MissionError {
ParseField(usize),
MissingField(usize),
InvalidUtf8,
OutOfOrder(u16),
BufferTooSmall,
}Expand description
⍚ Mission-related errors.
Variants§
ParseField(usize)
Field parse error.
MissingField(usize)
Missing field.
InvalidUtf8
Invalid UTF8 representation.
OutOfOrder(u16)
Waypoint is out of order.
BufferTooSmall
Buffer is too small.
Trait Implementations§
Source§impl Clone for MissionError
impl Clone for MissionError
Source§fn clone(&self) -> MissionError
fn clone(&self) -> MissionError
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 MissionError
impl Debug for MissionError
Source§impl<'de> Deserialize<'de> for MissionError
impl<'de> Deserialize<'de> for MissionError
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MissionError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MissionError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for MissionError
impl Display for MissionError
Source§impl Error for MissionError
impl Error for MissionError
1.30.0 · 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<MissionError> for Error
impl From<MissionError> for Error
Source§fn from(value: MissionError) -> Self
fn from(value: MissionError) -> Self
Converts MissionError into Error::Mission variant of Error.
Source§impl NamedType for MissionError
impl NamedType for MissionError
fn sid() -> SpectaID
Source§fn named_data_type(
type_map: &mut TypeCollection,
generics: &[DataType],
) -> NamedDataType
fn named_data_type( type_map: &mut TypeCollection, generics: &[DataType], ) -> NamedDataType
this is equivalent to Type::inline but returns a NamedDataType instead.
Source§fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
this is equivalent to [Type::definition] but returns a NamedDataType instead.
Source§impl Serialize for MissionError
impl Serialize for MissionError
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl Type for MissionError
impl Type for MissionError
Source§fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
Returns the definition of a type using the provided generics. Read more
Source§fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
Generates a datatype corresponding to a reference to this type,
as determined by its category. Getting a reference to a type implies that
it should belong in the type map (since it has to be referenced from somewhere),
so the output of
definition will be put into the type map.impl Copy for MissionError
impl Flatten for MissionError
Auto Trait Implementations§
impl Freeze for MissionError
impl RefUnwindSafe for MissionError
impl Send for MissionError
impl Sync for MissionError
impl Unpin for MissionError
impl UnwindSafe for MissionError
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