pub fn replace_contents_using_perms(
        mut self,
        contents: impl AsRef<[u8]>,
        permissions: Permissions,
    ) -> Result<()> {
        self.write_all(contents.as_ref())?;
        self.replace_with_perms(permissions)
    }
/// Write the given contents to the file to its destination with the chosen permissions.
Write the given contents to the file to its destination with the chosen permissions.
Write the given contents to the file to its destination with the chosen permissions .
pub fn replace_contents_using_perms(
        mut self,
        contents: impl AsRef<[u8]>,
        permissions: Permissions,
    ) -> Result<()> {
        self.write_all(contents.as_ref())?;
        self.replace_with_perms(permissions)
    }
pub fn replace_contents_using_perms ( mut self , contents : impl AsRef < [ u8 ] > , permissions : Permissions , ) -> Result < ( ) > { self . write_all ( contents . as_ref ( ) ) ? ; self . replace_with_perms ( permissions ) }
Write the given contents to the file to its destination with the chosen permissions.
Write the given contents to the file to its destination with the chosen permissions .
mut self
contents
impl AsRef<[u8]>
permissions
Permissions
mut self
contents
impl AsRef<[u8]>
permissions
Permissions