Sha256: 74f51e68fc3b5bcf03a5d6d1c23ab3a0ac31a05c7314f329fdfa10d3d552828a

Contents?: true

Size: 916 Bytes

Versions: 30

Compression:

Stored size: 916 Bytes

Contents

use std::fmt;
use std::ops::{Deref, DerefMut};

use windows_sys::Win32::System::WindowsProgramming::IO_STATUS_BLOCK;

pub struct IoStatusBlock(IO_STATUS_BLOCK);

cfg_io_source! {
    use windows_sys::Win32::System::WindowsProgramming::{IO_STATUS_BLOCK_0};

    impl IoStatusBlock {
        pub fn zeroed() -> Self {
            Self(IO_STATUS_BLOCK {
                Anonymous: IO_STATUS_BLOCK_0 { Status: 0 },
                Information: 0,
            })
        }
    }
}

unsafe impl Send for IoStatusBlock {}

impl Deref for IoStatusBlock {
    type Target = IO_STATUS_BLOCK;
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}

impl DerefMut for IoStatusBlock {
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.0
    }
}

impl fmt::Debug for IoStatusBlock {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        f.debug_struct("IoStatusBlock").finish()
    }
}

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
wasmtime-23.0.2 ./ext/cargo-vendor/mio-0.8.10/src/sys/windows/io_status_block.rs
wasmtime-22.0.0 ./ext/cargo-vendor/mio-0.8.10/src/sys/windows/io_status_block.rs
wasmtime-21.0.1 ./ext/cargo-vendor/mio-0.8.10/src/sys/windows/io_status_block.rs
wasmtime-20.0.2 ./ext/cargo-vendor/mio-0.8.10/src/sys/windows/io_status_block.rs
wasmtime-20.0.0 ./ext/cargo-vendor/mio-0.8.10/src/sys/windows/io_status_block.rs
wasmtime-18.0.3 ./ext/cargo-vendor/mio-0.8.10/src/sys/windows/io_status_block.rs
wasmtime-17.0.1 ./ext/cargo-vendor/mio-0.8.10/src/sys/windows/io_status_block.rs
wasmtime-17.0.0 ./ext/cargo-vendor/mio-0.8.10/src/sys/windows/io_status_block.rs
wasmtime-16.0.0 ./ext/cargo-vendor/mio-0.8.10/src/sys/windows/io_status_block.rs
wasmtime-15.0.1 ./ext/cargo-vendor/mio-0.8.10/src/sys/windows/io_status_block.rs
wasmtime-15.0.0 ./ext/cargo-vendor/mio-0.8.10/src/sys/windows/io_status_block.rs
wasmtime-14.0.4 ./ext/cargo-vendor/mio-0.8.9/src/sys/windows/io_status_block.rs
wasmtime-14.0.3 ./ext/cargo-vendor/mio-0.8.9/src/sys/windows/io_status_block.rs
wasmtime-14.0.1 ./ext/cargo-vendor/mio-0.8.9/src/sys/windows/io_status_block.rs
wasmtime-14.0.0 ./ext/cargo-vendor/mio-0.8.9/src/sys/windows/io_status_block.rs
wasmtime-13.0.0 ./ext/cargo-vendor/mio-0.8.8/src/sys/windows/io_status_block.rs
wasmtime-12.0.1 ./ext/cargo-vendor/mio-0.8.8/src/sys/windows/io_status_block.rs
wasmtime-12.0.0 ./ext/cargo-vendor/mio-0.8.8/src/sys/windows/io_status_block.rs
wasmtime-11.0.0 ./ext/cargo-vendor/mio-0.8.8/src/sys/windows/io_status_block.rs
wasmtime-10.0.1 ./ext/cargo-vendor/mio-0.8.8/src/sys/windows/io_status_block.rs