pub enum EncodeProgramDataError {
BadName {
program: String,
},
NoSuchNode {
node: usize,
},
SameEntry {
program: String,
},
TooLarge,
}Expand description
Why a list of program data entries could not be encoded.
Variants§
BadName
A program name is not 1 to 64 lowercase letters, digits, dots, hyphens and underscores, starting with a letter.
NoSuchNode
An entry names a node the scene does not have.
SameEntry
Two entries have the same program and subject.
TooLarge
There are 2^32 or more entries, or a document of 4 GiB or more.
Trait Implementations§
Source§impl Clone for EncodeProgramDataError
impl Clone for EncodeProgramDataError
Source§impl Debug for EncodeProgramDataError
impl Debug for EncodeProgramDataError
Source§impl Display for EncodeProgramDataError
impl Display for EncodeProgramDataError
impl Eq for EncodeProgramDataError
Source§impl Error for EncodeProgramDataError
impl Error for EncodeProgramDataError
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 EncodeProgramDataError
impl PartialEq for EncodeProgramDataError
impl StructuralPartialEq for EncodeProgramDataError
Auto Trait Implementations§
impl Forget for EncodeProgramDataError
impl Freeze for EncodeProgramDataError
impl Move for EncodeProgramDataError
impl RefUnwindSafe for EncodeProgramDataError
impl Send for EncodeProgramDataErrorwhere
RawVecInner: Send,
impl Sync for EncodeProgramDataErrorwhere
RawVecInner: Sync,
impl Unpin for EncodeProgramDataError
impl UnsafeUnpin for EncodeProgramDataError
impl UnwindSafe for EncodeProgramDataErrorwhere
RawVecInner: UnwindSafe,
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