pub enum ProtocolError {
Show 17 variants
Truncated,
InvalidEnvelope,
InvalidRecordLength,
InvalidTag(u16),
InvalidWidget(u16),
InvalidProperty(u16),
InvalidValueKind(u16),
InvalidModifier(u16),
InvalidTheme(u16),
InvalidAssetKind(u16),
InvalidMessageDuration(u16),
InvalidNotification(u16),
InvalidStringRange,
InvalidUtf8,
LengthOverflow,
MeasureRefused(i32),
InvalidAnimation,
}Variants§
Truncated
InvalidEnvelope
InvalidRecordLength
InvalidTag(u16)
InvalidWidget(u16)
InvalidProperty(u16)
InvalidValueKind(u16)
InvalidModifier(u16)
InvalidTheme(u16)
InvalidAssetKind(u16)
InvalidMessageDuration(u16)
InvalidNotification(u16)
A notification importance or presentation this decoder does not know.
InvalidStringRange
InvalidUtf8
LengthOverflow
MeasureRefused(i32)
The Renderer refused a whole measure call with this status: its buffer could not be read, it came from the wrong thread, or there was nothing to measure with yet.
InvalidAnimation
An animation record that is well formed bytes but not an animation: an unknown value, fewer than two keyframes, offsets that do not run from 0 to 1, a negative or non-numeric duration or iteration count, keyframes whose values or transform lists do not match, or a length that does not hold its keyframes.
Trait Implementations§
Source§impl Clone for ProtocolError
impl Clone for ProtocolError
Source§impl Debug for ProtocolError
impl Debug for ProtocolError
Source§impl Display for ProtocolError
impl Display for ProtocolError
impl Eq for ProtocolError
Source§impl Error for ProtocolError
impl Error for ProtocolError
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 ProtocolError
impl PartialEq for ProtocolError
impl StructuralPartialEq for ProtocolError
Auto Trait Implementations§
impl Freeze for ProtocolError
impl RefUnwindSafe for ProtocolError
impl Send for ProtocolError
impl Sync for ProtocolError
impl Unpin for ProtocolError
impl UnsafeUnpin for ProtocolError
impl UnwindSafe for ProtocolError
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