pub enum EncodeMetadataError {
NoSuchNode {
node: usize,
},
BadKey {
key: String,
},
ReservedKey {
key: String,
},
BadValue {
key: String,
},
SameEntry {
key: String,
},
TooLarge,
}Expand description
Why a list of metadata entries could not be encoded.
Variants§
NoSuchNode
An entry names a node the scene does not have.
BadKey
A key is not 1 to 64 lowercase letters, digits, dots, hyphens and underscores, starting with a letter.
ReservedKey
A key without a dot that the format does not register.
BadValue
A registered key’s value is not what the key takes: UTF-8 text, or
16 bytes for uuid.
SameEntry
Two entries have the same subject and key.
TooLarge
There are 2^32 or more entries, or a value of 4 GiB or more.
Trait Implementations§
Source§impl Clone for EncodeMetadataError
impl Clone for EncodeMetadataError
Source§impl Debug for EncodeMetadataError
impl Debug for EncodeMetadataError
Source§impl Display for EncodeMetadataError
impl Display for EncodeMetadataError
impl Eq for EncodeMetadataError
Source§impl Error for EncodeMetadataError
impl Error for EncodeMetadataError
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 EncodeMetadataError
impl PartialEq for EncodeMetadataError
impl StructuralPartialEq for EncodeMetadataError
Auto Trait Implementations§
impl Forget for EncodeMetadataError
impl Freeze for EncodeMetadataError
impl Move for EncodeMetadataError
impl RefUnwindSafe for EncodeMetadataError
impl Send for EncodeMetadataError
impl Sync for EncodeMetadataError
impl Unpin for EncodeMetadataError
impl UnsafeUnpin for EncodeMetadataError
impl UnwindSafe for EncodeMetadataError
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