INNER CODE UNIT · Rust

new

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

    pub fn new(flags: u16) -> Self {
        Self {
            magic: NBD_MAGIC,
            ihaveopt: NBD_IHAVEOPT,
            handshake_flags: flags,
        }
    }
}

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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…