Enum gaffe_xilinx::xc7::Packet [−][src]
pub enum Packet { Type0, Type1 { opcode: Opcode, address: RegisterAddress, payload: Vec<Word>, }, Type2 { opcode: Opcode, payload: Vec<Word>, }, }
Variants
Type0
Type1
Fields of Type1
opcode: Opcode | |
address: RegisterAddress | |
payload: Vec<Word> |
Type2
Fields of Type2
opcode: Opcode | |
payload: Vec<Word> |
Methods
impl Packet
[src]
impl Packet
Trait Implementations
impl Debug for Packet
[src]
impl Debug for Packet
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Packet
[src]
impl Clone for Packet
fn clone(&self) -> Packet
[src]
fn clone(&self) -> Packet
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T> From<T> for Packet where
T: ToWord + Register,
[src]
impl<T> From<T> for Packet where
T: ToWord + Register,
impl Display for Packet
[src]
impl Display for Packet
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl FromBytes for Packet
[src]
impl FromBytes for Packet
fn from_bytes(bytes: &mut BufRead) -> Result<Self, Error>
[src]
fn from_bytes(bytes: &mut BufRead) -> Result<Self, Error>
Read an instance of this type from the reader. Read more
impl ToBytes for Packet
[src]
impl ToBytes for Packet