pub struct Failure {
pub member: Option<String>,
pub path: String,
pub offset: usize,
pub reason: Reason,
}Expand description
Where and why encoding or decoding a value failed.
Fields§
§member: Option<String>The attribute or parameter, when the codec was called with a handle: attribute HLAobjectRoot.HLAmanager.HLAfederate.HLAfederateName.
path: StringThe place inside the value, starting with the name of the data type:
HLAinteractionSubList[3].HLAinteractionClass.
offset: usizeOffset from the start of the value, in octets: where decoding stopped, or how many octets had
been written when encoding stopped. While encoding the alternative of an
HLAextendableVariantRecord the offset counts from the start of that alternative.
reason: ReasonWhat went wrong.
Trait Implementations§
impl Eq for Failure
impl StructuralPartialEq for Failure
Auto Trait Implementations§
impl Forget for Failure
impl Freeze for Failure
impl Move for Failure
impl RefUnwindSafe for Failure
impl Send for Failure
impl Sync for Failurewhere
RawVecInner: Sync,
impl Unpin for Failure
impl UnsafeUnpin for Failure
impl UnwindSafe for Failure
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