pub fn new_with_timeout(foundation: &mut Foundation, port: i32, timeout: u32) -> Option<Self> {
        use std::ffi::CStr;

        let flags = PxPvdInstrumentationFlags {
            mBits: PxPvdInstrumentationFlag::eDEBUG as u8,
        };

        let pvd = unsafe { Pvd::from_raw(phys_PxCreatePvd(foundation.as_mut_ptr()))? };
        let transport = unsafe {
            let oshost = CStr::from_bytes_with_nul_unchecked(b"localhost\0");
            PvdTransport::from_raw(phys_PxDefaultPvdSocketTransportCreate(
                oshost.as_ptr() as _,
                port,
                timeout,
            ))?
        };

        let mut visual_debugger = Self { pvd, transport };

        visual_debugger.connect(flags);

        Some(visual_debugger)
    }
/// See description of `new`
See description of `new`
See description of ` new `
pub fn new_with_timeout(foundation: &mut Foundation, port: i32, timeout: u32) -> Option<Self> {
        use std::ffi::CStr;
        let flags = PxPvdInstrumentationFlags {
            mBits: PxPvdInstrumentationFlag::eDEBUG as u8,
        };
        let pvd = unsafe { Pvd::from_raw(phys_PxCreatePvd(foundation.as_mut_ptr()))? };
        let transport = unsafe {
            let oshost = CStr::from_bytes_with_nul_unchecked(b"localhost\0");
            PvdTransport::from_raw(phys_PxDefaultPvdSocketTransportCreate(
                oshost.as_ptr() as _,
                port,
                timeout,
            ))?
        };
        let mut visual_debugger = Self { pvd, transport };
        visual_debugger.connect(flags);
        Some(visual_debugger)
    }
pub fn new_with_timeout ( foundation : & mut Foundation , port : i32 , timeout : u32 ) -> Option < Self > { use std :: ffi :: CStr ; let flags = PxPvdInstrumentationFlags { mBits : PxPvdInstrumentationFlag :: eDEBUG as u8 , } ; let pvd = unsafe { Pvd :: from_raw ( phys_PxCreatePvd ( foundation . as_mut_ptr ( ) ) ) ? } ; let transport = unsafe { let oshost = CStr :: from_bytes_with_nul_unchecked ( b" \0 " ) ; PvdTransport :: from_raw ( phys_PxDefaultPvdSocketTransportCreate ( oshost . as_ptr ( ) as _ , port , timeout , ) ) ? } ; let mut visual_debugger = Self { pvd , transport } ; visual_debugger . connect ( flags ) ; Some ( visual_debugger ) }
See description of `new`
See description of ` new `
foundation
&mut Foundation
port
i32
timeout
u32