pub struct NetworkErrorCode {
pub network_type: ErrorCodeNetworkType,
pub error_code: u16,
}Fields§
§network_type: ErrorCodeNetworkType§error_code: u16Implementations§
Source§impl NetworkErrorCode
impl NetworkErrorCode
Sourcepub fn into_parts(self) -> NetworkErrorCodeParts
pub fn into_parts(self) -> NetworkErrorCodeParts
Converts Self into its parts.
Sourcepub fn from_parts(parts: NetworkErrorCodeParts) -> Self
pub fn from_parts(parts: NetworkErrorCodeParts) -> Self
Source§impl NetworkErrorCode
impl NetworkErrorCode
pub fn new(network_type: ErrorCodeNetworkType, error_code: u16) -> Self
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for NetworkErrorCode
impl<'arbitrary> Arbitrary<'arbitrary> for NetworkErrorCode
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§impl Clone for NetworkErrorCode
impl Clone for NetworkErrorCode
Source§fn clone(&self) -> NetworkErrorCode
fn clone(&self) -> NetworkErrorCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NetworkErrorCode
impl Debug for NetworkErrorCode
Source§impl Decode for NetworkErrorCode
Available on crate feature alloc only.
impl Decode for NetworkErrorCode
Available on crate feature
alloc only.Source§impl<'a> Decode<'a> for NetworkErrorCode
impl<'a> Decode<'a> for NetworkErrorCode
Source§impl Default for NetworkErrorCode
impl Default for NetworkErrorCode
Source§fn default() -> NetworkErrorCode
fn default() -> NetworkErrorCode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NetworkErrorCode
impl<'de> Deserialize<'de> for NetworkErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encode for NetworkErrorCode
impl Encode for NetworkErrorCode
Source§impl Encode for NetworkErrorCode
Available on crate feature alloc only.
impl Encode for NetworkErrorCode
Available on crate feature
alloc only.impl Eq for NetworkErrorCode
Source§impl Hash for NetworkErrorCode
impl Hash for NetworkErrorCode
Source§impl Ord for NetworkErrorCode
impl Ord for NetworkErrorCode
Source§fn cmp(&self, other: &NetworkErrorCode) -> Ordering
fn cmp(&self, other: &NetworkErrorCode) -> Ordering
1.21.0 (const: unstable) · 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 PartialEq for NetworkErrorCode
impl PartialEq for NetworkErrorCode
Source§fn eq(&self, other: &NetworkErrorCode) -> bool
fn eq(&self, other: &NetworkErrorCode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for NetworkErrorCode
impl PartialOrd for NetworkErrorCode
Source§impl Serialize for NetworkErrorCode
impl Serialize for NetworkErrorCode
impl StructuralPartialEq for NetworkErrorCode
Auto Trait Implementations§
impl Freeze for NetworkErrorCode
impl RefUnwindSafe for NetworkErrorCode
impl Send for NetworkErrorCode
impl Sync for NetworkErrorCode
impl Unpin for NetworkErrorCode
impl UnsafeUnpin for NetworkErrorCode
impl UnwindSafe for NetworkErrorCode
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