/// Create a debug log object that allows access to read from and write to the kernel debug
/// logging facility.
///
/// Wraps the
/// [zx_debuglog_create]((https://fuchsia.dev/fuchsia-src/reference/syscalls/debuglog_create.md)
/// syscall.
Create a debug log object that allows access to read from and write to the kernel debug
logging facility.

Wraps the
[zx_debuglog_create](
syscall.
Create a debug log object that allows access to read from and write to the kernel debug logging facility . Wraps the [ zx_debuglog_create ] ( syscall .
pub fn create(resource: &Resource, opts: DebugLogOpts) -> Result<DebugLog, Status> {
        let mut handle = 0;
        let status =
            unsafe { sys::zx_debuglog_create(resource.raw_handle(), opts.bits(), &mut handle) };
        ok(status)?;
        unsafe { Ok(DebugLog::from(Handle::from_raw(handle))) }
    }
pub fn create ( resource : & Resource , opts : DebugLogOpts ) -> Result < DebugLog , Status > { let mut handle = 0 ; let status = unsafe { sys :: zx_debuglog_create ( resource . raw_handle ( ) , opts . bits ( ) , & mut handle ) } ; ok ( status ) ? ; unsafe { Ok ( DebugLog :: from ( Handle :: from_raw ( handle ) ) ) } }
Create a debug log object that allows access to read from and write to the kernel debug
logging facility.
Create a debug log object that allows access to read from and write to the kernel debug logging facility .
resource
&Resource
opts
DebugLogOpts