pub enum ProtocolError {
Show 19 variants
Truncated,
InvalidEnvelope,
InvalidRecordLength,
InvalidTag(u16),
InvalidWidget(u16),
InvalidProperty(u16),
InvalidValueKind(u16),
InvalidModifier(u16),
InvalidTheme(u16),
InvalidAssetKind(u16),
InvalidMessageDuration(u16),
InvalidMessagePlacement(u16),
InvalidNotification(u16),
InvalidStringRange,
InvalidUtf8,
LengthOverflow,
MeasureRefused(i32),
InvalidAnimation,
MisplacedWindow,
}Variants§
Truncated
InvalidEnvelope
InvalidRecordLength
InvalidTag(u16)
InvalidWidget(u16)
InvalidProperty(u16)
InvalidValueKind(u16)
InvalidModifier(u16)
InvalidTheme(u16)
InvalidAssetKind(u16)
InvalidMessageDuration(u16)
InvalidMessagePlacement(u16)
A message placement tag this decoder does not know, or a placement with one of its two halves missing.
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.
MisplacedWindow
A Window node that is not a child of the root, or a node moved from one window
into another. Compose keeps one composition per window and has no
way to hand a node from one to the next.
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()