:orphan: .. _s_11PytoRuntime9WASIStateC9setRights_4base10inheritingSbs5Int32V_s6UInt64VAJtF: ``setRights(_:base:inheriting:)`` ================================= Sets the fs_rights_base and fs_rights_inheriting values for the file descriptor. .. raw:: html .. rubric:: Declaration .. raw:: html
func setRights(
       _ id: Int32,
       base: UInt64,
       inheriting: UInt64
   ) -> Bool
   
.. rubric:: Parameters - **id**: The WASI file number. - **base**: The new fs_rights_base value. - **inheriting**: The new fs_rights_inheriting value. .. rubric:: Returns ``false`` if the file descriptor is not opened. ``true`` otherwise.