Struct protocol::types::Unimplemented
source · pub struct Unimplemented;
Expand description
A type that does not have any protocol serialization implemented.
Behaviour
If any unimplemented parcel is read, an error of type
UnimplementedParcel
is returned. This allows clients to
handle unimplemented data gracefully.
If you attempt to write an unimplemented parcel, the program panics. It makes sense to do error handling on unimplemented types that are read from remote machines, but it does not make sense to allow undefined data to be sent.
Trait Implementations§
source§impl Clone for Unimplemented
impl Clone for Unimplemented
source§fn clone(&self) -> Unimplemented
fn clone(&self) -> Unimplemented
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Unimplemented
impl Debug for Unimplemented
source§impl Hash for Unimplemented
impl Hash for Unimplemented
source§impl Ord for Unimplemented
impl Ord for Unimplemented
source§fn cmp(&self, other: &Unimplemented) -> Ordering
fn cmp(&self, other: &Unimplemented) -> 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 Parcel for Unimplemented
impl Parcel for Unimplemented
source§fn read(_: &mut dyn Read, _: &Settings) -> Result<Self, Error>
fn read(_: &mut dyn Read, _: &Settings) -> Result<Self, Error>
Reads a value from a stream. Read more
source§fn write(&self, _: &mut dyn Write, _: &Settings) -> Result<(), Error>
fn write(&self, _: &mut dyn Write, _: &Settings) -> Result<(), Error>
Writes a value to a stream.
source§fn from_raw_bytes(bytes: &[u8], settings: &Settings) -> Result<Self, Error>
fn from_raw_bytes(bytes: &[u8], settings: &Settings) -> Result<Self, Error>
Parses a new value from its raw byte representation. Read more
source§impl PartialEq<Unimplemented> for Unimplemented
impl PartialEq<Unimplemented> for Unimplemented
source§fn eq(&self, other: &Unimplemented) -> bool
fn eq(&self, other: &Unimplemented) -> bool
source§impl PartialOrd<Unimplemented> for Unimplemented
impl PartialOrd<Unimplemented> for Unimplemented
source§fn partial_cmp(&self, other: &Unimplemented) -> Option<Ordering>
fn partial_cmp(&self, other: &Unimplemented) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more