pub enum BuilderError {
MissingRequiredField(&'static str),
InvalidValue {
field: &'static str,
reason: String,
},
DurationTooLarge {
field: &'static str,
duration: Duration,
},
InvalidUpidLength {
expected: usize,
actual: usize,
},
InvalidComponentCount {
max: usize,
actual: usize,
},
}Expand description
Errors that can occur during message building.
Variants§
MissingRequiredField(&'static str)
A required field is missing.
InvalidValue
An invalid value was provided for a field.
Fields
DurationTooLarge
A duration value is too large to fit in the SCTE-35 format.
Fields
InvalidUpidLength
A UPID has an invalid length for its type.
Fields
InvalidComponentCount
Too many components were specified.
Trait Implementations§
Source§impl Clone for BuilderError
impl Clone for BuilderError
Source§fn clone(&self) -> BuilderError
fn clone(&self) -> BuilderError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BuilderError
impl Debug for BuilderError
Source§impl Display for BuilderError
impl Display for BuilderError
Source§impl Error for BuilderError
impl Error for BuilderError
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 BuilderError
impl PartialEq for BuilderError
impl StructuralPartialEq for BuilderError
Auto Trait Implementations§
impl Freeze for BuilderError
impl RefUnwindSafe for BuilderError
impl Send for BuilderError
impl Sync for BuilderError
impl Unpin for BuilderError
impl UnsafeUnpin for BuilderError
impl UnwindSafe for BuilderError
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