Struct fidl_fuchsia_io_test::Io1Config
source · pub struct Io1Config {Show 15 fields
pub supports_create: Option<bool>,
pub supports_executable_file: Option<bool>,
pub supports_get_backing_memory: Option<bool>,
pub supports_remote_dir: Option<bool>,
pub supports_rename: Option<bool>,
pub supports_link: Option<bool>,
pub supports_set_attr: Option<bool>,
pub supports_get_token: Option<bool>,
pub supports_unlink: Option<bool>,
pub supports_open2: Option<bool>,
pub supports_get_attributes: Option<bool>,
pub supports_update_attributes: Option<bool>,
pub supports_link_into: Option<bool>,
pub supports_directory_watchers: Option<bool>,
pub supports_append: Option<bool>,
/* private fields */
}
Expand description
Conformance test harnesses will implement this protocol to setup its
associated filesystem servers with the described directory layout,
allowing their implementation of fuchsia.io
and fuchsia.io2
protocols
to be verified by a common test suite.
Different test cases will not interact with one another during the conformance test, and only one test case will be active at a time per tested filesystem. So it is possible to host all cases as different sub-directories under a common filesystem instance, to simplify the lifecycle and implementation.
If a test case has mutable bits, each method call should be implemented to obtain the directory in its original state. In other words, repeated test case set up should “as-if” yield new directories.
See src/storage/conformance/README.md
for an overview of io conformance
testing.
Io1Config
lets the test harness modulate the set of expected outcomes and
behaviors validated by the test suite, by declaring specific properties
about the filesystem implementation. For example, setting [ImmutableFile
]
to true informs the test suites that files hosted by this harness do not
support mutation.
Fields§
§supports_create: Option<bool>
Directories support the CREATE flag for creating new files.
supports_executable_file: Option<bool>
ExecutableFile objects are supported.
supports_get_backing_memory: Option<bool>
GetBackingMemory is supported.
supports_remote_dir: Option<bool>
Remote directories are supported.
supports_rename: Option<bool>
Rename is supported.
supports_link: Option<bool>
Link is supported.
supports_set_attr: Option<bool>
SetAttr is supported.
supports_get_token: Option<bool>
GetToken is supported.
supports_unlink: Option<bool>
Unlink is supported.
supports_open2: Option<bool>
Supports fuchsia.io’s Open2 method.
supports_get_attributes: Option<bool>
Supports fuchsia.io’s GetAttributes method.
supports_update_attributes: Option<bool>
Supports fuchsia.io’s UpdateAttributes method.
supports_link_into: Option<bool>
Supports fuchsia.io’s LinkInto method.
supports_directory_watchers: Option<bool>
Supports directory watchers.
supports_append: Option<bool>
Files can be opened in append mode.
Trait Implementations§
source§impl Decode<Io1Config> for Io1Config
impl Decode<Io1Config> for Io1Config
source§impl PartialEq for Io1Config
impl PartialEq for Io1Config
source§impl TypeMarker for Io1Config
impl TypeMarker for Io1Config
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.