Enum stubr::error::StubrError
source · pub enum StubrError {
Show 24 variants
InvalidStub(PathBuf),
UrlError(ParseError),
RegexSyntaxError(Box<Error>),
RegexError(Error),
Utf8Error(Utf8Error),
RandRegexError(Box<Error>),
JwtError(Error),
HandlebarsError(RenderError),
IoError(Error),
JsonError(Error),
HyperError(Error),
IntConversionError(TryFromIntError),
HttpError(Error),
JsonPathError(String),
NoRequestBodyMatcher,
InvalidRequestBodyMatcher(&'static str),
InvalidTemplate(&'static str, &'static str),
QuietError,
RecordingError(&'static str),
MissingProtoFile,
ProtobufFileNotFound(PathBuf),
ProtoMessageNotFound(String, PathBuf),
MissingProtoMessage,
InvalidGrpcRequest,
}
Variants§
InvalidStub(PathBuf)
UrlError(ParseError)
RegexSyntaxError(Box<Error>)
RegexError(Error)
Utf8Error(Utf8Error)
RandRegexError(Box<Error>)
JwtError(Error)
HandlebarsError(RenderError)
IoError(Error)
JsonError(Error)
HyperError(Error)
IntConversionError(TryFromIntError)
HttpError(Error)
JsonPathError(String)
NoRequestBodyMatcher
InvalidRequestBodyMatcher(&'static str)
InvalidTemplate(&'static str, &'static str)
QuietError
RecordingError(&'static str)
MissingProtoFile
ProtobufFileNotFound(PathBuf)
ProtoMessageNotFound(String, PathBuf)
MissingProtoMessage
InvalidGrpcRequest
Trait Implementations§
source§impl Debug for StubrError
impl Debug for StubrError
source§impl Display for StubrError
impl Display for StubrError
source§impl Error for StubrError
impl Error for StubrError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Error> for StubrError
impl From<Error> for StubrError
source§impl From<Error> for StubrError
impl From<Error> for StubrError
source§impl From<Error> for StubrError
impl From<Error> for StubrError
source§impl From<Error> for StubrError
impl From<Error> for StubrError
source§impl From<Error> for StubrError
impl From<Error> for StubrError
source§impl From<Error> for StubrError
impl From<Error> for StubrError
source§impl From<ParseError> for StubrError
impl From<ParseError> for StubrError
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
source§impl From<RenderError> for StubrError
impl From<RenderError> for StubrError
source§fn from(source: RenderError) -> Self
fn from(source: RenderError) -> Self
Converts to this type from the input type.
source§impl From<StubrError> for RenderError
impl From<StubrError> for RenderError
source§fn from(se: StubrError) -> Self
fn from(se: StubrError) -> Self
Converts to this type from the input type.
source§impl From<TryFromIntError> for StubrError
impl From<TryFromIntError> for StubrError
source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for StubrError
impl Send for StubrError
impl Sync for StubrError
impl Unpin for StubrError
impl !UnwindSafe for StubrError
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