pub struct FabricError(/* private fields */);
Expand description
Make passing error code to SF api easier. Provides conversion from windows errors or fabric error code to windows_core::Error.
Implementations§
Source§impl FabricError
impl FabricError
pub fn new(code: HRESULT) -> Self
Sourcepub fn try_as_fabric_error_code(&self) -> Result<FabricErrorCode, &str>
pub fn try_as_fabric_error_code(&self) -> Result<FabricErrorCode, &str>
Convert to fabric error code if possible.
Trait Implementations§
Source§impl Clone for FabricError
impl Clone for FabricError
Source§fn clone(&self) -> FabricError
fn clone(&self) -> FabricError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FabricError
impl Debug for FabricError
Source§impl Display for FabricError
impl Display for FabricError
Source§impl From<Error> for FabricError
impl From<Error> for FabricError
Source§impl From<FABRIC_ERROR_CODE> for FabricError
impl From<FABRIC_ERROR_CODE> for FabricError
Source§fn from(value: FABRIC_ERROR_CODE) -> Self
fn from(value: FABRIC_ERROR_CODE) -> Self
Converts to this type from the input type.
Source§impl From<FabricError> for Error
impl From<FabricError> for Error
Source§fn from(val: FabricError) -> Self
fn from(val: FabricError) -> Self
Converts to this type from the input type.
Source§impl From<FabricError> for HRESULT
impl From<FabricError> for HRESULT
Source§fn from(value: FabricError) -> Self
fn from(value: FabricError) -> Self
Converts to this type from the input type.
Source§impl From<FabricErrorCode> for FabricError
impl From<FabricErrorCode> for FabricError
Source§fn from(value: FabricErrorCode) -> Self
fn from(value: FabricErrorCode) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FabricError
impl RefUnwindSafe for FabricError
impl Send for FabricError
impl Sync for FabricError
impl Unpin for FabricError
impl UnwindSafe for FabricError
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