Struct fluence_app_service::WithContext
source · [−]pub struct WithContext<'c, T> {
pub context: &'c ConfigContext,
pub data: T,
}
Fields
context: &'c ConfigContext
data: T
Trait Implementations
sourceimpl<'c> TryFrom<WithContext<'c, TomlMarineModuleConfig>> for MarineModuleConfig
impl<'c> TryFrom<WithContext<'c, TomlMarineModuleConfig>> for MarineModuleConfig
type Error = MarineError
type Error = MarineError
The type returned in the event of a conversion error.
sourcefn try_from(
toml_config: WithContext<'c, TomlMarineModuleConfig>
) -> Result<MarineModuleConfig, <MarineModuleConfig as TryFrom<WithContext<'c, TomlMarineModuleConfig>>>::Error>
fn try_from(
toml_config: WithContext<'c, TomlMarineModuleConfig>
) -> Result<MarineModuleConfig, <MarineModuleConfig as TryFrom<WithContext<'c, TomlMarineModuleConfig>>>::Error>
Performs the conversion.
sourceimpl<'c> TryFrom<WithContext<'c, TomlMarineNamedModuleConfig>> for ModuleDescriptor
impl<'c> TryFrom<WithContext<'c, TomlMarineNamedModuleConfig>> for ModuleDescriptor
type Error = MarineError
type Error = MarineError
The type returned in the event of a conversion error.
sourcefn try_from(
config: WithContext<'c, TomlMarineNamedModuleConfig>
) -> Result<ModuleDescriptor, <ModuleDescriptor as TryFrom<WithContext<'c, TomlMarineNamedModuleConfig>>>::Error>
fn try_from(
config: WithContext<'c, TomlMarineNamedModuleConfig>
) -> Result<ModuleDescriptor, <ModuleDescriptor as TryFrom<WithContext<'c, TomlMarineNamedModuleConfig>>>::Error>
Performs the conversion.
sourceimpl<'c> TryFrom<WithContext<'c, TomlWASIConfig>> for MarineWASIConfig
impl<'c> TryFrom<WithContext<'c, TomlWASIConfig>> for MarineWASIConfig
type Error = MarineError
type Error = MarineError
The type returned in the event of a conversion error.
sourcefn try_from(
toml_config: WithContext<'c, TomlWASIConfig>
) -> Result<MarineWASIConfig, <MarineWASIConfig as TryFrom<WithContext<'c, TomlWASIConfig>>>::Error>
fn try_from(
toml_config: WithContext<'c, TomlWASIConfig>
) -> Result<MarineWASIConfig, <MarineWASIConfig as TryFrom<WithContext<'c, TomlWASIConfig>>>::Error>
Performs the conversion.
Auto Trait Implementations
impl<'c, T> RefUnwindSafe for WithContext<'c, T>where
T: RefUnwindSafe,
impl<'c, T> Send for WithContext<'c, T>where
T: Send,
impl<'c, T> Sync for WithContext<'c, T>where
T: Sync,
impl<'c, T> Unpin for WithContext<'c, T>where
T: Unpin,
impl<'c, T> UnwindSafe for WithContext<'c, T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more