Enum fluence_app_service::MarineError
source · pub enum MarineError {
InvalidConfig(String),
InstantiationError {
module_import_name: String,
modules_dir: Option<PathBuf>,
provided_modules: Vec<String>,
},
IOError(String),
MissingFunctionError(String),
MissingArgumentError(String),
NoSuchModule(String),
JsonArgumentsDeserializationError {
module_name: String,
function_name: String,
error: ITJsonSeDeError,
},
JsonOutputSerializationError {
module_name: String,
function_name: String,
error: ITJsonSeDeError,
},
ParseConfigError(Error),
EngineError(MError),
HighProbabilityOOM {
original_error: MError,
allocation_stats: MemoryAllocationStats,
},
}
Variants§
InvalidConfig(String)
Errors that happened due to invalid config content
InstantiationError
An error occurred at the instantiation step.
IOError(String)
Various errors related to file i/o.
MissingFunctionError(String)
A function with specified name is missing.
MissingArgumentError(String)
An argument with specified name is missing.
NoSuchModule(String)
Returns when there is no module with such name.
JsonArgumentsDeserializationError
Provided arguments aren’t compatible with a called function signature.
JsonOutputSerializationError
Returned outputs aren’t compatible with a called function signature.
ParseConfigError(Error)
Errors related to invalid config.
EngineError(MError)
Marine errors.
HighProbabilityOOM
When marine returned an error and there was a rejected allocation, the most probable cause is OOM. Otherwise this error is the same as EngineError. This error is on marine-runtime level, because otherwise it is impossible to check allocation stats after a failed instantiation.
Trait Implementations§
source§impl Debug for MarineError
impl Debug for MarineError
source§impl Display for MarineError
impl Display for MarineError
source§impl Error for MarineError
impl Error for MarineError
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 MarineError
impl From<Error> for MarineError
source§fn from(source: Error) -> MarineError
fn from(source: Error) -> MarineError
Converts to this type from the input type.
source§impl From<Infallible> for MarineError
impl From<Infallible> for MarineError
source§fn from(_: Infallible) -> MarineError
fn from(_: Infallible) -> MarineError
Converts to this type from the input type.
source§impl From<MError> for MarineError
impl From<MError> for MarineError
source§fn from(source: MError) -> MarineError
fn from(source: MError) -> MarineError
Converts to this type from the input type.
source§impl From<MarineError> for AppServiceError
impl From<MarineError> for AppServiceError
source§fn from(err: MarineError) -> Self
fn from(err: MarineError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MarineError
impl !RefUnwindSafe for MarineError
impl Send for MarineError
impl Sync for MarineError
impl Unpin for MarineError
impl !UnwindSafe for MarineError
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
source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self
file descriptor.source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self
file descriptor. Read moresource§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more