pub struct ErrorValue(/* private fields */);
Expand description
A witness type for error values observed from the netboot protocol.
An instance of ErrorValue
always represents a u32
with the MSB
set.
Implementations§
Source§impl ErrorValue
impl ErrorValue
Sourcepub const fn new(v: u32) -> Option<Self>
pub const fn new(v: u32) -> Option<Self>
Creates a new ErrorValue
from v
, returning Some
if v
has
the MSB set, matching the protocol definition.
Trait Implementations§
Source§impl Clone for ErrorValue
impl Clone for ErrorValue
Source§fn clone(&self) -> ErrorValue
fn clone(&self) -> ErrorValue
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 ErrorValue
impl Debug for ErrorValue
Source§impl From<ErrorValue> for u32
impl From<ErrorValue> for u32
Source§fn from(v: ErrorValue) -> Self
fn from(v: ErrorValue) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ErrorValue
impl PartialEq for ErrorValue
impl Copy for ErrorValue
impl Eq for ErrorValue
impl StructuralPartialEq for ErrorValue
Auto Trait Implementations§
impl Freeze for ErrorValue
impl RefUnwindSafe for ErrorValue
impl Send for ErrorValue
impl Sync for ErrorValue
impl Unpin for ErrorValue
impl UnwindSafe for ErrorValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)