pub struct NetworkErrorCode {
pub network_type: ErrorCodeNetworkType,
pub error_code: u16,
}
Fields§
§network_type: ErrorCodeNetworkType
§error_code: u16
Implementations§
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 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 NetworkErrorCode
impl Debug for NetworkErrorCode
Source§impl Decode for NetworkErrorCode
impl Decode 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 Encode for NetworkErrorCode
impl Encode 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 · 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§impl PartialOrd for NetworkErrorCode
impl PartialOrd 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§
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