Struct marine::WithContext
source · pub struct WithContext<'c, T> {
pub context: &'c ConfigContext,
pub data: T,
}Fields§
§context: &'c ConfigContext§data: TTrait Implementations§
source§impl<'c, WB: WasmBackend> TryFrom<WithContext<'c, TomlMarineModuleConfig>> for MarineModuleConfig<WB>
impl<'c, WB: WasmBackend> TryFrom<WithContext<'c, TomlMarineModuleConfig>> for MarineModuleConfig<WB>
§type Error = MarineError
type Error = MarineError
The type returned in the event of a conversion error.
source§fn try_from(
toml_config: WithContext<'c, TomlMarineModuleConfig>
) -> Result<Self, Self::Error>
fn try_from( toml_config: WithContext<'c, TomlMarineModuleConfig> ) -> Result<Self, Self::Error>
Performs the conversion.
source§impl<'c, WB: WasmBackend> TryFrom<WithContext<'c, TomlMarineNamedModuleConfig>> for ModuleDescriptor<WB>
impl<'c, WB: WasmBackend> TryFrom<WithContext<'c, TomlMarineNamedModuleConfig>> for ModuleDescriptor<WB>
§type Error = MarineError
type Error = MarineError
The type returned in the event of a conversion error.
source§fn try_from(
config: WithContext<'c, TomlMarineNamedModuleConfig>
) -> Result<Self, Self::Error>
fn try_from( config: WithContext<'c, TomlMarineNamedModuleConfig> ) -> Result<Self, Self::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§
§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§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.