pub trait SuperBuilderImpl<T> {
// Required methods
fn new() -> Self;
fn code(&self) -> u32;
fn msg(&self) -> &str;
fn level(&self) -> ExceptionLevel;
fn set_code(&mut self, code: u32) -> &mut Self;
fn set_msg(&mut self, msg: &str) -> &mut Self;
fn set_level(&mut self, level: ExceptionLevel) -> &mut Self;
fn exception_type(&self) -> Exceptions;
fn timestamp(&self) -> Duration;
fn build(&mut self) -> T;
}
Required Methods§
fn new() -> Self
fn code(&self) -> u32
fn msg(&self) -> &str
fn level(&self) -> ExceptionLevel
fn set_code(&mut self, code: u32) -> &mut Self
fn set_msg(&mut self, msg: &str) -> &mut Self
fn set_level(&mut self, level: ExceptionLevel) -> &mut Self
fn exception_type(&self) -> Exceptions
fn timestamp(&self) -> Duration
fn build(&mut self) -> T
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.