pub enum OpcodeOrErr {
Op(Opcode),
Err(ErrorCode),
}
Expand description
Part of a netboot message’s preamble.
Every message is marked with either an opcode or an error.
Variants§
Trait Implementations§
Source§impl Clone for OpcodeOrErr
impl Clone for OpcodeOrErr
Source§fn clone(&self) -> OpcodeOrErr
fn clone(&self) -> OpcodeOrErr
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 OpcodeOrErr
impl Debug for OpcodeOrErr
Source§impl From<ErrorCode> for OpcodeOrErr
impl From<ErrorCode> for OpcodeOrErr
Source§impl From<Opcode> for OpcodeOrErr
impl From<Opcode> for OpcodeOrErr
Source§impl From<OpcodeOrErr> for u32
impl From<OpcodeOrErr> for u32
Source§fn from(cmd: OpcodeOrErr) -> Self
fn from(cmd: OpcodeOrErr) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OpcodeOrErr
impl PartialEq for OpcodeOrErr
Source§impl TryFrom<u32> for OpcodeOrErr
impl TryFrom<u32> for OpcodeOrErr
impl Copy for OpcodeOrErr
impl Eq for OpcodeOrErr
impl StructuralPartialEq for OpcodeOrErr
Auto Trait Implementations§
impl Freeze for OpcodeOrErr
impl RefUnwindSafe for OpcodeOrErr
impl Send for OpcodeOrErr
impl Sync for OpcodeOrErr
impl Unpin for OpcodeOrErr
impl UnwindSafe for OpcodeOrErr
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
)