#[repr(i32)]pub enum mxr_result_t {
MXR_OK = 0,
MXR_ERR_INVALID_ARGUMENT = -1,
MXR_ERR_NOT_FOUND = -2,
MXR_ERR_PROTOCOL_TOO_OLD = -3,
MXR_ERR_NOT_CONNECTED = -4,
MXR_ERR_IO = -5,
MXR_ERR_UNSUPPORTED = -6,
MXR_ERR_NOT_REPORTED = -7,
MXR_ERR_PANIC = -8,
}Expand description
How a call ended.
Everything but mxr_result_t::MXR_OK is negative, so if (rc < 0) is a
complete test and a new code cannot turn a failure into a success.
Variants§
MXR_OK = 0
The call did what was asked.
MXR_ERR_INVALID_ARGUMENT = -1
A pointer was null, a buffer too small, or a string not UTF-8.
MXR_ERR_NOT_FOUND = -2
No device, bay or source by that name has been heard from.
A device reports itself when it feels like it, so this is as likely to mean “not yet” as “never”: the same call may succeed later.
MXR_ERR_PROTOCOL_TOO_OLD = -3
The addressed device speaks a protocol older than the command needs.
It would discard the frame without answering, so nothing was sent.
MXR_ERR_NOT_CONNECTED = -4
The client has no socket, because it was never started or was closed.
MXR_ERR_IO = -5
The socket write failed, or the socket could not be opened.
MXR_ERR_UNSUPPORTED = -6
The addressee does not do what was asked of it.
MXR_ERR_NOT_REPORTED = -7
The device has not reported something the request is assembled from.
MXR_ERR_PANIC = -8
A panic was caught at the boundary. The library’s state is unknown.
Trait Implementations§
Source§impl Clone for mxr_result_t
impl Clone for mxr_result_t
Source§fn clone(&self) -> mxr_result_t
fn clone(&self) -> mxr_result_t
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more