Struct fruity__bbqsrc::core::OSErr [−][src]
#[repr(transparent)]pub struct OSErr(_);
Expand description
A non-zero 16-bit error code.
This is the old counterpart to OSStatus
.
Usage
In FFI code, this type is meant to be used as Option<OSErr>
.
None
becomes 0 (no error) because this type is
#[repr(transparent)]
over NonZeroI16
.
Rust bindings that call Option<OSErr>
-returning functions should return
Result<T, OSErr>
.
Implementations
Creates an instance from value
, returning None
if it is zero.
Creates an instance from a non-zero value
.
Converts an OSStatus
instance to an OSErr
if it’s within the 16-bit
range.
Returns this error’s integer value.
Apple event manager errors.
Data could not be coerced to the requested descriptor type.
See documentation.
Descriptor was not found.
See documentation.
Data in an Apple event could not be read.
See documentation.
Wrong descriptor type.
See documentation.
Not a valid descriptor.
See documentation.
Operation involving a list item failed.
See documentation.
Need a newer version of the Apple Event Manager.
See documentation.
The event is not in AppleEvent format.
See documentation.
Event wasn’t handled by an Apple event handler.
See documentation.
AEResetTimer
was passed an invalid reply.
See documentation.
Invalid sending mode was passed.
See documentation.
User canceled out of wait loop for reply or receipt.
See documentation.
Apple event timed out.
See documentation.
No user interaction allowed.
See documentation.
Wrong keyword for a special function.
See documentation.
A required parameter was not accessed.
See documentation.
Unknown Apple event address type.
See documentation.
No handler found for an Apple event.
See documentation.
Reply has not yet arrived.
See documentation.
Not a valid list index.
See documentation.
The range is not valid because it is impossible for a range to include the first and last objects that were specified;an example is a range in which the offset of the first object is greater than the offset of the last object.
See documentation.
The number of operands provided for the kAENOT
logical operator is not
1.
See documentation.
There is no object accessor function for the specified object class and container type.
See documentation.
The logical operator in a logical descriptor is not kAEAND
, kAEOR
,or
kAENOT
.
See documentation.
The descriptor in a test key is neither a comparison descriptor nor a logical descriptor.
See documentation.
See documentation.
Runtime resolution of an object failed.
See documentation.
An object-counting function returned a negative result.
See documentation.
The container for an Apple event object is specified by an empty list.
See documentation.
The object type isn’t recognized.
See documentation.
Recording is already on.
See documentation.
Break out of all levels of AEReceive
to the topmost (1.1 or greater).
See documentation.
Break out of lowest level only of AEReceive
(1.1 or greater).
See documentation.
Event has been filtered and should not be propagated (1.1 or greater).
See documentation.
Attempt to install handler in table for identical class and ID (1.1 or greater).
See documentation.
Nesting violation while streaming.
See documentation.
Attempt to convert a stream that has already been converted.
See documentation.
Attempt to perform an invalid operation on a null descriptor.
See documentation.
AEBuildDesc
and related functions detected a syntax error.
See documentation.
Buffer for AEFlattenDesc
too small.
See documentation.
Trait Implementations
Performs the conversion.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for OSErr
impl UnwindSafe for OSErr
Blanket Implementations
Mutably borrows from an owned value. Read more