INNER CODE UNIT · Rust

new

Barre/ZeroFS · zerofs/nbd-proto/src/lib.rs:170

    pub fn new(cookie: u64, error: u32) -> Self {
        Self {
            magic: NBD_SIMPLE_REPLY_MAGIC,
            error,
            cookie,
        }
    }
}

impl NBDExportInfo {
    pub fn new(size: u64, flags: u16) -> Self {
        Self {
            size,
            transmission_flags: flags,
        }
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…