INNER CODE UNIT · Rust

new

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

    pub fn new(option: u32, reply_type: u32, length: u32) -> Self {
        Self {
            magic: NBD_REPLY_MAGIC,
            option,
            reply_type,
            length,
        }
    }
}

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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…