pub struct Lossy(/* private fields */);Available on crate feature
convert only.Expand description
Everything a conversion could not carry, in document order.
Implementations§
Source§impl Lossy
impl Lossy
Sourcepub fn record(&mut self, pointer: impl Into<String>, reason: impl Into<String>)
pub fn record(&mut self, pointer: impl Into<String>, reason: impl Into<String>)
Records a loss.
Sourcepub fn absorb(&mut self, prefix: &str, other: Self)
pub fn absorb(&mut self, prefix: &str, other: Self)
Merges another report in, prefixing each of its pointers with prefix.
Used to lift the losses of a nested object into its parent’s coordinates.
Sourcepub fn to_status_message(&self) -> Option<String>
pub fn to_status_message(&self) -> Option<String>
A one-line summary suitable for an OCPI status_message.
A hub can attach this to a forwarded response so the receiving party knows the object was translated and what did not survive.
Trait Implementations§
impl Eq for Lossy
Source§impl<'a> IntoIterator for &'a Lossy
impl<'a> IntoIterator for &'a Lossy
Source§impl IntoIterator for Lossy
impl IntoIterator for Lossy
impl StructuralPartialEq for Lossy
Auto Trait Implementations§
impl Freeze for Lossy
impl RefUnwindSafe for Lossy
impl Send for Lossy
impl Sync for Lossy
impl Unpin for Lossy
impl UnsafeUnpin for Lossy
impl UnwindSafe for Lossy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.