pub enum StartupError {
DuplicateResource {
name: &'static str,
},
DuplicateCatalog {
name: &'static str,
},
MissingResource {
operation: String,
resource: &'static str,
},
UnknownLane {
lane: &'static str,
},
Multiple {
errors: Vec<StartupError>,
},
Binding {
source: Box<ServingError>,
},
Runtime {
source: Box<dyn Error + Send + Sync>,
},
}Variants§
DuplicateResource
DuplicateCatalog
MissingResource
UnknownLane
Multiple
Fields
§
errors: Vec<StartupError>Binding
Fields
§
source: Box<ServingError>Runtime
Implementations§
Trait Implementations§
Source§impl Debug for StartupError
impl Debug for StartupError
Source§impl Display for StartupError
impl Display for StartupError
Source§impl Error for StartupError
impl Error for StartupError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Box<StartupError>> for ServingError
impl From<Box<StartupError>> for ServingError
Source§fn from(source: Box<StartupError>) -> Self
fn from(source: Box<StartupError>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for StartupError
impl !UnwindSafe for StartupError
impl Freeze for StartupError
impl Send for StartupError
impl Sync for StartupError
impl Unpin for StartupError
impl UnsafeUnpin for StartupError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more