Enum fs_management::Mode
source · pub enum Mode<'a> {
Legacy(LegacyConfig<'a>),
Component {
name: &'a str,
reuse_component_after_serving: bool,
format_options: FormatOptions,
start_options: StartOptions,
component_type: ComponentType,
},
}
Variants§
Legacy(LegacyConfig<'a>)
Run the filesystem as a legacy binary. TODO(fxbug.dev/117437): remove legacy filesystem launching support.
Component
Fields
§
name: &'a str
For static children, the name specifies the name of the child. For dynamic children, the component URL is “#meta/{component-name}.cm”. The library will attempt to connect to a static child first, and if that fails, it will launch the filesystem within a collection.
§
reuse_component_after_serving: bool
It should be possible to reuse components after serving them, but it’s not universally supported.
§
format_options: FormatOptions
Format options as defined by the startup protocol
§
start_options: StartOptions
Start options as defined by the startup protocol
§
component_type: ComponentType
Whether to launch this filesystem as a dynamic or static child.
Run the filesystem as a component.