pub trait PtpHeader: PtpHeaderBase {
// Provided methods
fn has_mac(&self) -> bool { ... }
fn set_mac(&mut self, has_mac: bool) { ... }
fn packet_type(&self) -> u8 { ... }
fn set_packet_type(&mut self, packet_type: u8) { ... }
fn flags(&self) -> (bool, bool, bool) { ... }
fn set_flags(&mut self, flags: (bool, bool, bool)) { ... }
}
Provided Methods§
Sourcefn packet_type(&self) -> u8
fn packet_type(&self) -> u8
Returns the packet type
Sourcefn set_packet_type(&mut self, packet_type: u8)
fn set_packet_type(&mut self, packet_type: u8)
Sets the packet type