#[non_exhaustive]pub enum PerformIntoError {
Win32(Win32Error),
Misaligned {
class: FileInformationClass,
structure: &'static str,
required: usize,
address: usize,
},
}Expand description
Why QueryFileInformation::perform_into did not fill the caller’s buffer.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Win32(Win32Error)
Windows refused the call, with the raw code unaltered.
Misaligned
Refused before the call, which was not made: the page of the structure the class writes says it “must be aligned on” a boundary the buffer’s address is not on. It carries no OS code, because Windows reported nothing.
Implementations§
Trait Implementations§
Source§impl Debug for PerformIntoError
impl Debug for PerformIntoError
Source§impl Display for PerformIntoError
impl Display for PerformIntoError
Source§impl Error for PerformIntoError
impl Error for PerformIntoError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Win32Error> for PerformIntoError
impl From<Win32Error> for PerformIntoError
Source§fn from(error: Win32Error) -> Self
fn from(error: Win32Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PerformIntoError
impl RefUnwindSafe for PerformIntoError
impl Send for PerformIntoError
impl Sync for PerformIntoError
impl Unpin for PerformIntoError
impl UnsafeUnpin for PerformIntoError
impl UnwindSafe for PerformIntoError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more