pub enum FabricErrorCode {
Success = 0,
InvalidArgument = -2_147_024_809,
AccessDenied = -2_147_024_891,
ArgumentNull = -2_147_467_261,
OperationCanceled = -2_147_467_260,
OperationFailed = -2_147_467_259,
OutOfMemory = -2_147_024_882,
NotImplemented = -2_147_467_263,
AsyncOperationNotComplete = -2_147_017_784,
OperationNotSupported = -2_147_017_590,
}
Expand description
SF uses win32 hresult code together with the fabric error code. See: https://github.com/microsoft/service-fabric/blob/master/src/prod/src/Common/ErrorCodeValue.h We provide the common win32 hresult code that SF uses. They are helpful when returning from Rust back into SF com api.
Variants§
Success = 0
InvalidArgument = -2_147_024_809
AccessDenied = -2_147_024_891
ArgumentNull = -2_147_467_261
OperationCanceled = -2_147_467_260
OperationFailed = -2_147_467_259
OutOfMemory = -2_147_024_882
NotImplemented = -2_147_467_263
AsyncOperationNotComplete = -2_147_017_784
OperationNotSupported = -2_147_017_590
Trait Implementations§
source§impl From<FabricErrorCode> for Error
impl From<FabricErrorCode> for Error
source§fn from(value: FabricErrorCode) -> Self
fn from(value: FabricErrorCode) -> 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.
source§impl From<FabricErrorCode> for HRESULT
impl From<FabricErrorCode> for HRESULT
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 FabricErrorCode
impl RefUnwindSafe for FabricErrorCode
impl Send for FabricErrorCode
impl Sync for FabricErrorCode
impl Unpin for FabricErrorCode
impl UnwindSafe for FabricErrorCode
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