pub fn add_arch(&mut self, arch: ScmpArch) -> Result<()> {
        let ret = unsafe { seccomp_arch_add(self.ctx.as_ptr(), arch.to_native()) };

        // Libseccomp returns -EEXIST if the specified architecture is already
        // present. Succeed silently in this case, as it's not fatal, and the
        // architecture is present already.
        if ret < 0 && ret != -(libc::EEXIST as i32) {
            return Err(SeccompError::new(Errno(ret)));
        }

        Ok(())
    }
/// add_arch adds an architecture to the filter.
///
/// Accepts an architecture constant.
/// Returns an architecture token, or an error with the call to libseccomp.
add_arch adds an architecture to the filter.
Accepts an architecture constant.
Returns an architecture token, or an error with the call to libseccomp.
add_arch adds an architecture to the filter . Accepts an architecture constant . Returns an architecture token or an error with the call to libseccomp .
pub fn add_arch(&mut self, arch: ScmpArch) -> Result<()> {
        let ret = unsafe { seccomp_arch_add(self.ctx.as_ptr(), arch.to_native()) };
        // Libseccomp returns -EEXIST if the specified architecture is already
        // present. Succeed silently in this case, as it's not fatal, and the
        // architecture is present already.
        if ret < 0 && ret != -(libc::EEXIST as i32) {
            return Err(SeccompError::new(Errno(ret)));
        }
        Ok(())
    }
pub fn add_arch ( & mut self , arch : ScmpArch ) -> Result < ( ) > { let ret = unsafe { seccomp_arch_add ( self . ctx . as_ptr ( ) , arch . to_native ( ) ) } ; // Libseccomp returns -EEXIST if the specified architecture is already // present. Succeed silently in this case, as it's not fatal, and the // architecture is present already. if ret < 0 && ret != - ( libc :: EEXIST as i32 ) { return Err ( SeccompError :: new ( Errno ( ret ) ) ) ; } Ok ( ( ) ) }
add_arch adds an architecture to the filter.
add_arch adds an architecture to the filter .
&mut self
arch
ScmpArch