smb-fscc 0.11.2

FSCC (File System Control Codes) implementations for `smb-rs`
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use thiserror::Error;

/// Errors specific to the smb-fscc crate.
#[derive(Error, Debug)]
pub enum SmbFsccError {
    /// Describes a failure to convert info class enum to variant.
    ///
    /// For example, when trying to convert a [`QueryFileInfo`][`crate::QueryFileInfo`] to [`FileAccessInformation`][`crate::FileAccessInformation`],
    /// and the actual variant is different.
    #[error("Unexpected information type. Expected {0} ({1}), got {2}")]
    UnexpectedInformationType(&'static str, u8, u8),
}