Struct RPC_STATUS
#[repr(transparent)]pub struct RPC_STATUS(pub i32);Expand description
An error or status code value returned by some operating system functions.
Tuple Fields§
§0: i32Implementations§
Source§impl RPC_STATUS
impl RPC_STATUS
Sourcepub const fn to_hresult(self) -> HRESULT
pub const fn to_hresult(self) -> HRESULT
Maps an RPC error code to an HRESULT value.
Sourcepub fn ok(self) -> Result<(), Error>
pub fn ok(self) -> Result<(), Error>
Converts the RPC_STATUS to Result<()>.
Trait Implementations§
Source§impl Clone for RPC_STATUS
impl Clone for RPC_STATUS
Source§fn clone(&self) -> RPC_STATUS
fn clone(&self) -> RPC_STATUS
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RPC_STATUS
Source§impl Debug for RPC_STATUS
impl Debug for RPC_STATUS
Source§impl Default for RPC_STATUS
impl Default for RPC_STATUS
Source§fn default() -> RPC_STATUS
fn default() -> RPC_STATUS
Returns the “default value” for a type. Read more
Source§impl Display for RPC_STATUS
impl Display for RPC_STATUS
impl Eq for RPC_STATUS
Source§impl From<RPC_STATUS> for HRESULT
impl From<RPC_STATUS> for HRESULT
Source§fn from(value: RPC_STATUS) -> HRESULT
fn from(value: RPC_STATUS) -> HRESULT
Converts to this type from the input type.
Source§impl From<RPC_STATUS> for Error
impl From<RPC_STATUS> for Error
Source§fn from(value: RPC_STATUS) -> Error
fn from(value: RPC_STATUS) -> Error
Converts to this type from the input type.
Source§impl Hash for RPC_STATUS
impl Hash for RPC_STATUS
Source§impl Ord for RPC_STATUS
impl Ord for RPC_STATUS
Source§fn cmp(&self, other: &RPC_STATUS) -> Ordering
fn cmp(&self, other: &RPC_STATUS) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RPC_STATUS
impl PartialEq for RPC_STATUS
Source§impl PartialOrd for RPC_STATUS
impl PartialOrd for RPC_STATUS
impl StructuralPartialEq for RPC_STATUS
Auto Trait Implementations§
impl Freeze for RPC_STATUS
impl RefUnwindSafe for RPC_STATUS
impl Send for RPC_STATUS
impl Sync for RPC_STATUS
impl Unpin for RPC_STATUS
impl UnsafeUnpin for RPC_STATUS
impl UnwindSafe for RPC_STATUS
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