use thiserror::Error;
#[derive(Error, Debug)]
pub enum ValidationError {
#[error("UDP private trackers are not supported. URL schemes for private tracker URLs must be HTTP ot HTTPS")]
UdpTrackersInPrivateModeNotSupported,
}
pub trait Validator {
fn validate(&self) -> Result<(), ValidationError>;
}