pub struct BitcoinPacket {
pub magic: u32,
pub command: String,
pub length: u32,
pub checksum: [u8; 4],
pub payload: Vec<u8>,
}Expand description
The BitcoinPacket struct represents a parsed Bitcoin packet.
Fields§
§magic: u32§command: String§length: u32§checksum: [u8; 4]§payload: Vec<u8>Trait Implementations§
Source§impl Debug for BitcoinPacket
impl Debug for BitcoinPacket
Auto Trait Implementations§
impl Freeze for BitcoinPacket
impl RefUnwindSafe for BitcoinPacket
impl Send for BitcoinPacket
impl Sync for BitcoinPacket
impl Unpin for BitcoinPacket
impl UnsafeUnpin for BitcoinPacket
impl UnwindSafe for BitcoinPacket
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