Skip to main content

tuwunel_core/utils/result/
not_found.rs

1use super::Result;
2use crate::Error;
3
4pub trait NotFound<T> {
5	#[must_use]
6	fn is_not_found(&self) -> bool;
7}
8
9impl<T> NotFound<T> for Result<T, Error> {
10	#[inline]
11	fn is_not_found(&self) -> bool { self.as_ref().is_err_and(Error::is_not_found) }
12}