pub struct Directory {
pub meta: Metadata,
pub children: BTreeMap<Vec<u8>, Node>,
}Expand description
A directory and its named children.
Fields§
§meta: MetadataThe logical metadata of the directory inode.
children: BTreeMap<Vec<u8>, Node>The children, keyed by name and sorted by name.
A name is raw bytes and one path component:
- It is not empty.
- It is not
.or... - It holds no
/. - It is at most 255 bytes, the limit that an observation of the
ostreecommand shows.
If a name breaks one of these rules, build_image
and write_image_to return
Error::Unsupported.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Directory
impl Freeze for Directory
impl Move for Directory
impl RefUnwindSafe for Directory
impl Send for Directory
impl Sync for Directory
impl Unpin for Directory
impl UnsafeUnpin for Directorywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(Vec<u8>, Vec<u8>)>: UnsafeUnpin,
*const LeafNode<Vec<u8>, Node> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(Vec<u8>, Node)>>: UnsafeUnpin,
impl UnwindSafe for Directory
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more