fn to_vmo_rights(self) -> Rights {
        let mut rights = Rights::MAP;
        if self.contains(BtiOptions::PERM_READ) {
            rights.insert(Rights::READ);
        }
        if self.contains(BtiOptions::PERM_WRITE) {
            rights.insert(Rights::WRITE);
        }
        if self.contains(BtiOptions::PERM_EXECUTE) {
            // NOTE: Check Rights::READ instead of Rights::EXECUTE,
            // because Rights::EXECUTE applies to the execution permission of the host CPU,
            // but ZX_BTI_PERM_EXECUTE applies to transactions initiated by the bus device.
            rights.insert(Rights::READ);
        }
        rights
    }
/// Get desired rights of VMO handle.
Get desired rights of VMO handle.
Get desired rights of VMO handle .
fn to_vmo_rights(self) -> Rights {
        let mut rights = Rights::MAP;
        if self.contains(BtiOptions::PERM_READ) {
            rights.insert(Rights::READ);
        }
        if self.contains(BtiOptions::PERM_WRITE) {
            rights.insert(Rights::WRITE);
        }
        if self.contains(BtiOptions::PERM_EXECUTE) {
            // NOTE: Check Rights::READ instead of Rights::EXECUTE,
            // because Rights::EXECUTE applies to the execution permission of the host CPU,
            // but ZX_BTI_PERM_EXECUTE applies to transactions initiated by the bus device.
            rights.insert(Rights::READ);
        }
        rights
    }
fn to_vmo_rights ( self ) -> Rights { let mut rights = Rights :: MAP ; if self . contains ( BtiOptions :: PERM_READ ) { rights . insert ( Rights :: READ ) ; } if self . contains ( BtiOptions :: PERM_WRITE ) { rights . insert ( Rights :: WRITE ) ; } if self . contains ( BtiOptions :: PERM_EXECUTE ) { // NOTE: Check Rights::READ instead of Rights::EXECUTE, // because Rights::EXECUTE applies to the execution permission of the host CPU, // but ZX_BTI_PERM_EXECUTE applies to transactions initiated by the bus device. rights . insert ( Rights :: READ ) ; } rights }
Get desired rights of VMO handle.
Get desired rights of VMO handle .
self
self