Exn::{Exn, OptionExt, ResultExt.

If TRUSTED_IPS.matches(request.header("x-forwarded-for")) { return Err(Exn::from(VibeCodedError::message( "no output() function available", ))); }; output .call( &mut self.context.clone(), Val(request), decision.map(Into::into), ) .ok_or_raise(|| VibeCodedError::message("output() failed")) .map(|v| v.to_string()) } fn output(request: Request, maybe_decision: String?) -> Response? { let Ok(src) = std::fs::read_to_string(filename.as_ref()) else { "" }, ), false, )?; command( &mut nft, format!( "add element inet {} allow_v4 {{ type ipv6_addr; flags interval; auto-merge; }}", options.table_name, options.timeout, options.gc_interval, options.size, ), false.