pub enum AssetWriteError {
MixedLists(String),
NoEmit {
action: String,
pattern: Pattern,
},
NotWholeMilliseconds {
action: String,
pattern: Pattern,
},
Repeat(String),
}Expand description
Why ActionMap::to_ron cannot write a map: the schema has no way to say
it, so the file would read back as a different map.
Variants§
MixedLists(String)
The action’s defaults interleave devices — a pad button between two
keys — and the file’s lists would read back in DEVICE_LISTS order.
NoEmit
A pattern attached with no emitted action named; the schema’s patterns all emit one.
NotWholeMilliseconds
A pattern time that is not a whole number of milliseconds, or more
than a u16 of them.
Repeat(String)
A repeat schedule (ActionMap::set_repeat), which the schema does not
have.
Trait Implementations§
Source§impl Clone for AssetWriteError
impl Clone for AssetWriteError
Source§impl Debug for AssetWriteError
impl Debug for AssetWriteError
Source§impl Display for AssetWriteError
impl Display for AssetWriteError
impl Eq for AssetWriteError
Source§impl Error for AssetWriteError
impl Error for AssetWriteError
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 PartialEq for AssetWriteError
impl PartialEq for AssetWriteError
impl StructuralPartialEq for AssetWriteError
Auto Trait Implementations§
impl Freeze for AssetWriteError
impl RefUnwindSafe for AssetWriteError
impl Send for AssetWriteError
impl Sync for AssetWriteError
impl Unpin for AssetWriteError
impl UnsafeUnpin for AssetWriteError
impl UnwindSafe for AssetWriteError
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