pub enum NarNode {
Regular {
executable: bool,
contents: Vec<u8>,
},
Symlink {
target: String,
},
Directory {
entries: Vec<NarEntry>,
},
}Expand description
A node in a NAR archive tree.
Variants§
Regular
A regular file with optional executable permission.
Fields
Symlink
A symbolic link.
Directory
A directory containing named entries.
Trait Implementations§
impl Eq for NarNode
impl StructuralPartialEq for NarNode
Auto Trait Implementations§
impl Freeze for NarNode
impl RefUnwindSafe for NarNode
impl Send for NarNode
impl Sync for NarNode
impl Unpin for NarNode
impl UnsafeUnpin for NarNode
impl UnwindSafe for NarNode
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