pub struct InstanceTypeError {
pub service_name: String,
pub type_mismatch: TypeMismatch,
}
Fields§
§service_name: String
§type_mismatch: TypeMismatch
Implementations§
Source§impl InstanceTypeError
impl InstanceTypeError
pub fn new(service_name: String, type_mismatch: TypeMismatch) -> Self
Trait Implementations§
Source§impl Debug for InstanceTypeError
impl Debug for InstanceTypeError
Source§impl Display for InstanceTypeError
impl Display for InstanceTypeError
Source§impl Error for InstanceTypeError
impl Error for InstanceTypeError
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + '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()
Auto Trait Implementations§
impl Freeze for InstanceTypeError
impl RefUnwindSafe for InstanceTypeError
impl Send for InstanceTypeError
impl Sync for InstanceTypeError
impl Unpin for InstanceTypeError
impl UnwindSafe for InstanceTypeError
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