Enum nix_compat::nar::reader::Node
source · pub enum Node<'a, 'r> {
Symlink {
target: Vec<u8>,
},
File {
executable: bool,
reader: FileReader<'a, 'r>,
},
Directory(DirReader<'a, 'r>),
}
Variants§
Implementations§
source§impl<'a, 'r> Node<'a, 'r>
impl<'a, 'r> Node<'a, 'r>
sourcefn new(reader: ArchiveReader<'a, 'r>) -> Result<Self>
fn new(reader: ArchiveReader<'a, 'r>) -> Result<Self>
Start reading a Node, matching the next wire::Node.
Reading the terminating wire::TOK_PAR is done immediately for Node::Symlink, but is otherwise left to DirReader or FileReader.
Auto Trait Implementations§
impl<'a, 'r> Freeze for Node<'a, 'r>
impl<'a, 'r> !RefUnwindSafe for Node<'a, 'r>
impl<'a, 'r> Send for Node<'a, 'r>
impl<'a, 'r> !Sync for Node<'a, 'r>
impl<'a, 'r> Unpin for Node<'a, 'r>
impl<'a, 'r> !UnwindSafe for Node<'a, 'r>
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