pub trait IntoSchemaFromFile {
type Ret;
// Required methods
fn into_schema_from_file(self, filename: impl Into<String>) -> Self::Ret;
fn into_schema_from_file_with<__F, __FILENAME>(self, f: __F) -> Self::Ret
where __F: FnOnce() -> __FILENAME,
__FILENAME: Into<String>;
}
Expand description
Extension trait for converting std::io::Error
into Error::SchemaFromFile
with the given context.
Required Associated Types§
Required Methods§
sourcefn into_schema_from_file(self, filename: impl Into<String>) -> Self::Ret
fn into_schema_from_file(self, filename: impl Into<String>) -> Self::Ret
Converts std::io::Error
into Error::SchemaFromFile
with the given context.
sourcefn into_schema_from_file_with<__F, __FILENAME>(self, f: __F) -> Self::Ret
fn into_schema_from_file_with<__F, __FILENAME>(self, f: __F) -> Self::Ret
Converts std::io::Error
into Error::SchemaFromFile
with the context returned by the given function.
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl IntoSchemaFromFile for Error
impl IntoSchemaFromFile for Error
source§fn into_schema_from_file(self, filename: impl Into<String>) -> Self::Ret
fn into_schema_from_file(self, filename: impl Into<String>) -> Self::Ret
Converts std::io::Error
into Error::SchemaFromFile
with the given context.
source§fn into_schema_from_file_with<__F, __FILENAME>(self, f: __F) -> Self::Ret
fn into_schema_from_file_with<__F, __FILENAME>(self, f: __F) -> Self::Ret
Converts std::io::Error
into Error::SchemaFromFile
with the context returned by the given function.
type Ret = Error
source§impl<__T> IntoSchemaFromFile for Result<__T, Error>
impl<__T> IntoSchemaFromFile for Result<__T, Error>
source§fn into_schema_from_file(self, filename: impl Into<String>) -> Self::Ret
fn into_schema_from_file(self, filename: impl Into<String>) -> Self::Ret
Converts std::io::Error
into Error::SchemaFromFile
with the given context.
source§fn into_schema_from_file_with<__F, __FILENAME>(self, f: __F) -> Self::Ret
fn into_schema_from_file_with<__F, __FILENAME>(self, f: __F) -> Self::Ret
Converts std::io::Error
into Error::SchemaFromFile
with the context returned by the given function.