fn validate(&self) -> Result<()> {
        // Validate all `SeccompCondition`s.
        if let Some(conditions) = self.conditions.as_ref() {
            return conditions
                .iter()
                .filter_map(|cond| cond.validate().err())
                .next()
                .map_or(Ok(()), |err| Err(Error::SeccompFilter(err)));
        }

        Ok(())
    }
/// Perform semantic checks after deserialization.
Perform semantic checks after deserialization.
Perform semantic checks after deserialization .
fn validate(&self) -> Result<()> {
        // Validate all `SeccompCondition`s.
        if let Some(conditions) = self.conditions.as_ref() {
            return conditions
                .iter()
                .filter_map(|cond| cond.validate().err())
                .next()
                .map_or(Ok(()), |err| Err(Error::SeccompFilter(err)));
        }
        Ok(())
    }
fn validate ( & self ) -> Result < ( ) > { // Validate all `SeccompCondition`s. if let Some ( conditions ) = self . conditions . as_ref ( ) { return conditions . iter ( ) . filter_map ( | cond | cond . validate ( ) . err ( ) ) . next ( ) . map_or ( Ok ( ( ) ) , | err | Err ( Error :: SeccompFilter ( err ) ) ) ; } Ok ( ( ) ) }
Perform semantic checks after deserialization.
Perform semantic checks after deserialization .
&self
&self