pub enum WindowsError {
Os {
operation: &'static str,
code: u32,
},
InvalidSize(usize),
WrongPeer,
InvalidHandle,
Layout(LayoutError),
Binding(BindingError),
InvalidBootstrap,
CapabilityAlreadyTransferred,
TimedOut(&'static str),
ChildExit(u32),
ForeignPending,
}Expand description
Windows section, bootstrap, lifecycle, or binding failure.
Variants§
Os
Win32 API failed with a captured GetLastError value.
InvalidSize(usize)
Mapping size is zero or cannot be page-rounded.
WrongPeer
Named-pipe peer PID differs from the held expected process.
InvalidHandle
Received or duplicated handle is invalid for this process.
Layout(LayoutError)
Quiescent layout validation failed.
Binding(BindingError)
Audited core binding failed.
InvalidBootstrap
Bootstrap environment or authenticated handshake was malformed.
CapabilityAlreadyTransferred
A sole-writer capability was already duplicated from this preparation.
TimedOut(&'static str)
A bounded bootstrap or lifecycle operation reached its deadline.
ChildExit(u32)
The exact helper exited unsuccessfully.
ForeignPending
A pending value came from another channel or transfer transaction.
Trait Implementations§
Source§impl Debug for WindowsError
impl Debug for WindowsError
Source§impl Display for WindowsError
impl Display for WindowsError
Source§impl Error for WindowsError
impl Error for WindowsError
1.30.0 · 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<BindingError> for WindowsError
impl From<BindingError> for WindowsError
Source§fn from(value: BindingError) -> Self
fn from(value: BindingError) -> Self
Converts to this type from the input type.
Source§impl From<LayoutError> for WindowsError
impl From<LayoutError> for WindowsError
Source§fn from(value: LayoutError) -> Self
fn from(value: LayoutError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WindowsError
impl RefUnwindSafe for WindowsError
impl Send for WindowsError
impl Sync for WindowsError
impl Unpin for WindowsError
impl UnsafeUnpin for WindowsError
impl UnwindSafe for WindowsError
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