pub struct Hpai { /* private fields */ }Implementations§
Source§impl Hpai
impl Hpai
pub const LENGTH: u8 = 0x08
pub const fn new(protocol: HostProtocol, address: [u8; 4], port: u16) -> Self
pub const fn protocol(self) -> HostProtocol
pub const fn address(self) -> [u8; 4]
pub const fn port(self) -> u16
pub fn decode(input: &[u8]) -> Result<(Self, &[u8])>
pub fn encode(self, out: &mut Vec<u8>) -> Result<()>
Trait Implementations§
impl Copy for Hpai
impl Eq for Hpai
impl StructuralPartialEq for Hpai
Auto Trait Implementations§
impl Freeze for Hpai
impl RefUnwindSafe for Hpai
impl Send for Hpai
impl Sync for Hpai
impl Unpin for Hpai
impl UnsafeUnpin for Hpai
impl UnwindSafe for Hpai
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