plan9 0.1.1

Plan9 interaction, based on github.com/9fans/go
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use anyhow::Result;
use nine::p2000::OpenMode;

use crate::fid::Fid;

pub struct Fsys {
    pub fid: Fid,
}

impl Fsys {
    pub fn open(&mut self, name: &str, mode: OpenMode) -> Result<Fid> {
        let mut fid = self.fid.walk(name)?;
        fid.open(mode)?;
        Ok(fid)
    }
}