[−][src]Struct protocol::types::Unimplemented
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
impl Clone for Unimplemented
[src]
fn clone(&self) -> Unimplemented
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Unimplemented
[src]
impl Debug for Unimplemented
[src]
impl Eq for Unimplemented
[src]
impl Hash for Unimplemented
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Unimplemented
[src]
fn cmp(&self, other: &Unimplemented) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl Parcel for Unimplemented
[src]
const TYPE_NAME: &'static str
[src]
fn read_field(
_: &mut dyn Read,
_: &Settings,
_: &mut Hints
) -> Result<Self, Error>
[src]
_: &mut dyn Read,
_: &Settings,
_: &mut Hints
) -> Result<Self, Error>
fn write_field(
&self,
_: &mut dyn Write,
_: &Settings,
_: &mut Hints
) -> Result<(), Error>
[src]
&self,
_: &mut dyn Write,
_: &Settings,
_: &mut Hints
) -> Result<(), Error>
fn read(read: &mut dyn Read, settings: &Settings) -> Result<Self, Error>
[src]
fn write(&self, write: &mut dyn Write, settings: &Settings) -> Result<(), Error>
[src]
fn into_stream(self, settings: &Settings) -> Result<Cursor<Vec<u8>>, Error>
[src]
fn from_raw_bytes(bytes: &[u8], settings: &Settings) -> Result<Self, Error>
[src]
fn field_from_raw_bytes(
bytes: &[u8],
settings: &Settings,
hints: &mut Hints
) -> Result<Self, Error>
[src]
bytes: &[u8],
settings: &Settings,
hints: &mut Hints
) -> Result<Self, Error>
fn raw_bytes(&self, settings: &Settings) -> Result<Vec<u8>, Error>
[src]
fn raw_bytes_field(
&self,
settings: &Settings,
hints: &mut Hints
) -> Result<Vec<u8>, Error>
[src]
&self,
settings: &Settings,
hints: &mut Hints
) -> Result<Vec<u8>, Error>
fn type_name(&self) -> &'static str
[src]
impl PartialEq<Unimplemented> for Unimplemented
[src]
fn eq(&self, other: &Unimplemented) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<Unimplemented> for Unimplemented
[src]
fn partial_cmp(&self, other: &Unimplemented) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Unimplemented
[src]
impl StructuralPartialEq for Unimplemented
[src]
Auto Trait Implementations
impl RefUnwindSafe for Unimplemented
impl Send for Unimplemented
impl Sync for Unimplemented
impl Unpin for Unimplemented
impl UnwindSafe for Unimplemented
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,