pub fn commit_hdr(&self, mem: &GuestMemoryMmap) -> Result<()> {
        // Reject weirdly-sized packets.
        self.check_len()?;

        mem.write_obj(self.hdr, self.hdr_addr)
            .map_err(VsockError::GuestMemoryMmap)
    }
/// Writes the local copy of the packet header to the guest memory.
Writes the local copy of the packet header to the guest memory.
Writes the local copy of the packet header to the guest memory .
pub fn commit_hdr(&self, mem: &GuestMemoryMmap) -> Result<()> {
        // Reject weirdly-sized packets.
        self.check_len()?;
        mem.write_obj(self.hdr, self.hdr_addr)
            .map_err(VsockError::GuestMemoryMmap)
    }
pub fn commit_hdr ( & self , mem : & GuestMemoryMmap ) -> Result < ( ) > { // Reject weirdly-sized packets. self . check_len ( ) ? ; mem . write_obj ( self . hdr , self . hdr_addr ) . map_err ( VsockError :: GuestMemoryMmap ) }
Writes the local copy of the packet header to the guest memory.
Writes the local copy of the packet header to the guest memory .
&self
mem
&GuestMemoryMmap
&self
mem
&GuestMemoryMmap