pub struct UnknownAbstractType(/* private fields */);Expand description
This is the type that will be decoded if we unpack an abstract type that hasn’t been registered. It preserves the original payload of the type so if we end up forwarding this to another program that does know this type, it will work.
Trait Implementations§
Source§impl Debug for UnknownAbstractType
impl Debug for UnknownAbstractType
Source§impl Hash for UnknownAbstractType
impl Hash for UnknownAbstractType
Source§impl Ord for UnknownAbstractType
impl Ord for UnknownAbstractType
Source§fn cmp(&self, other: &UnknownAbstractType) -> Ordering
fn cmp(&self, other: &UnknownAbstractType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl Pack for UnknownAbstractType
impl Pack for UnknownAbstractType
fn encoded_len(&self) -> usize
fn encode(&self, buf: &mut impl BufMut) -> Result<(), PackError>
fn decode(buf: &mut impl Buf) -> Result<Self, PackError>
fn const_encoded_len() -> Option<usize>
fn decode_into(&mut self, buf: &mut impl Buf) -> Result<(), PackError>where
Self: Sized,
Source§impl PartialEq for UnknownAbstractType
impl PartialEq for UnknownAbstractType
Source§impl PartialOrd for UnknownAbstractType
impl PartialOrd for UnknownAbstractType
impl Eq for UnknownAbstractType
impl StructuralPartialEq for UnknownAbstractType
Auto Trait Implementations§
impl !Freeze for UnknownAbstractType
impl RefUnwindSafe for UnknownAbstractType
impl Send for UnknownAbstractType
impl Sync for UnknownAbstractType
impl Unpin for UnknownAbstractType
impl UnwindSafe for UnknownAbstractType
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.