Module iceoryx2_bb_system_types::file_path
source · Expand description
Relocatable (inter-process shared memory compatible) SemanticString
implementation for
FilePath
. All modification operations ensure that never an
invalid file or path name can be generated. All strings have a fixed size so that the maximum
path or file name length the system supports can be stored.
§Example
ⓘ
use iceoryx2_bb_container::semantic_string::SemanticString;
use iceoryx2_bb_system_types::file_path::*;
let name = FilePath::new(b"some/path/../bla/some_file.txt");
let invalid_name = FilePath::new(b"final/slash/indicates/directory/");
assert!(invalid_name.is_err());
Structs§
- Represents a file path. The restriction are choosen in a way that it is platform independent. This means characters/strings which would be legal on some platforms are forbidden as well.
Traits§
- Trait that defines the methods a
FixedSizeByteString
with context semantics, aSemanticString
shares. A newSemanticString
can be created with thecrate::semantic_string!
macro. For the usage, seecrate::semantic_string
.