pub enum SerializeError {
MaxMessageSizeExceeded,
EmptyValue,
InvalidValue,
}Expand description
Why a value could not be written to the wire.
Variants§
MaxMessageSizeExceeded
The write would run past the end of the output buffer, or the patched BodyLength(9) does not fit the placeholder reserved for it.
EmptyValue
A field that must carry at least one byte was empty: FixStr, Country,
Currency, Exchange, Language, Data, XmlData, a MultipleCharValue
/ MultipleStringValue collection or one of its elements, or an enum collection.
InvalidValue
A value outside the range its FIX datatype allows: a zero TagNum,
NumInGroup or Length, a Char outside printable ASCII
(0x20..=0x7e), or a timestamp the wire grammar cannot render (year
outside 0000-9999, sub-minute UTC offset, leap second in a zoned
type).
Trait Implementations§
Source§impl Debug for SerializeError
impl Debug for SerializeError
Source§impl Display for SerializeError
impl Display for SerializeError
Source§impl Error for SerializeError
impl Error for SerializeError
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()
Auto Trait Implementations§
impl Forget for SerializeError
impl Freeze for SerializeError
impl RefUnwindSafe for SerializeError
impl Send for SerializeError
impl Sync for SerializeError
impl Unpin for SerializeError
impl UnsafeUnpin for SerializeError
impl UnwindSafe for SerializeError
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