#[derive(Debug, Clone, Eq, PartialEq)] pub struct BindError { message: String, } impl BindError { pub fn new(message: impl Into) -> Self { Self { message: message.into(), } } } impl std::fmt::Display for BindError { fn fmt(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { formatter.write_str(&self.message) } } impl std::error::Error for BindError {}