Trait cosmic_hyperverse::HyperErr
source · [−]pub trait HyperErr: Sized + Send + Sync + ToString + Clone + Into<UniErr> + From<UniErr> + From<String> + From<&'static str> + From<RecvError> + Into<UniErr> {
fn to_cosmic_err(&self) -> UniErr;
fn new<S>(message: S) -> Self
where
S: ToString;
fn status_msg<S>(status: u16, message: S) -> Self
where
S: ToString;
fn status(&self) -> u16;
fn not_found() -> Self { ... }
fn not_found_msg<S>(message: S) -> Self
where
S: ToString,
{ ... }
fn as_reflected_core(&self) -> ReflectedCore { ... }
}Required Methods
source
fn to_cosmic_err(&self) -> UniErr
sourcefn status_msg<S>(status: u16, message: S) -> Selfwhere
fn status_msg<S>(status: u16, message: S) -> Selfwhere
S: ToString,
Provided Methods
sourcefn not_found_msg<S>(message: S) -> Selfwhere
fn not_found_msg<S>(message: S) -> Selfwhere
S: ToString,
source