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§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<'a> Decode<'a> for NetworkErrorCode
impl<'a> Decode<'a> 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 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.Source§impl Hash for NetworkErrorCode
impl Hash for NetworkErrorCode
Source§impl Ord for NetworkErrorCode
impl Ord for NetworkErrorCode
Source§impl PartialEq for NetworkErrorCode
impl PartialEq for NetworkErrorCode
Source§impl PartialOrd for NetworkErrorCode
impl PartialOrd for NetworkErrorCode
Source§impl Serialize for NetworkErrorCode
impl Serialize for NetworkErrorCode
impl Eq 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 UnwindSafe for NetworkErrorCode
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)