#[repr(transparent)]pub struct Scan_ErrorCode(pub c_uint);Available on crate features
scan and api-12 only.Expand description
Defines error codes.
Available since API-level: 12
Version: 1.0
Tuple Fields§
§0: c_uintImplementations§
Source§impl Scan_ErrorCode
impl Scan_ErrorCode
Sourcepub const SCAN_ERROR_NONE: Scan_ErrorCode
pub const SCAN_ERROR_NONE: Scan_ErrorCode
The operation is successful.
Sourcepub const SCAN_ERROR_NO_PERMISSION: Scan_ErrorCode
pub const SCAN_ERROR_NO_PERMISSION: Scan_ErrorCode
Permission verification failed.
Sourcepub const SCAN_ERROR_INVALID_PARAMETER: Scan_ErrorCode
pub const SCAN_ERROR_INVALID_PARAMETER: Scan_ErrorCode
The parameter is invalid. For example, the pointer is null or the character string is null.
Sourcepub const SCAN_ERROR_GENERIC_FAILURE: Scan_ErrorCode
pub const SCAN_ERROR_GENERIC_FAILURE: Scan_ErrorCode
General internal error.
Sourcepub const SCAN_ERROR_RPC_FAILURE: Scan_ErrorCode
pub const SCAN_ERROR_RPC_FAILURE: Scan_ErrorCode
RPC communication error.
Sourcepub const SCAN_ERROR_SERVER_FAILURE: Scan_ErrorCode
pub const SCAN_ERROR_SERVER_FAILURE: Scan_ErrorCode
Server error.
Sourcepub const SCAN_ERROR_UNSUPPORTED: Scan_ErrorCode
pub const SCAN_ERROR_UNSUPPORTED: Scan_ErrorCode
Operation is not supported.
Sourcepub const SCAN_ERROR_CANCELED: Scan_ErrorCode
pub const SCAN_ERROR_CANCELED: Scan_ErrorCode
Operation was cancelled.
Sourcepub const SCAN_ERROR_DEVICE_BUSY: Scan_ErrorCode
pub const SCAN_ERROR_DEVICE_BUSY: Scan_ErrorCode
Device is busy, try again later.
Sourcepub const SCAN_ERROR_INVALID: Scan_ErrorCode
pub const SCAN_ERROR_INVALID: Scan_ErrorCode
Data is invalid (includes no dev at open).
Sourcepub const SCAN_ERROR_JAMMED: Scan_ErrorCode
pub const SCAN_ERROR_JAMMED: Scan_ErrorCode
Document feeder jammed.
Sourcepub const SCAN_ERROR_NO_DOCS: Scan_ErrorCode
pub const SCAN_ERROR_NO_DOCS: Scan_ErrorCode
Document feeder out of documents.
Sourcepub const SCAN_ERROR_COVER_OPEN: Scan_ErrorCode
pub const SCAN_ERROR_COVER_OPEN: Scan_ErrorCode
Scanner cover is open.
Sourcepub const SCAN_ERROR_IO_ERROR: Scan_ErrorCode
pub const SCAN_ERROR_IO_ERROR: Scan_ErrorCode
Error during device I/O.
Sourcepub const SCAN_ERROR_NO_MEMORY: Scan_ErrorCode
pub const SCAN_ERROR_NO_MEMORY: Scan_ErrorCode
Out of memory.
Trait Implementations§
Source§impl Clone for Scan_ErrorCode
impl Clone for Scan_ErrorCode
Source§fn clone(&self) -> Scan_ErrorCode
fn clone(&self) -> Scan_ErrorCode
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 moreSource§impl Debug for Scan_ErrorCode
impl Debug for Scan_ErrorCode
Source§impl Hash for Scan_ErrorCode
impl Hash for Scan_ErrorCode
Source§impl PartialEq for Scan_ErrorCode
impl PartialEq for Scan_ErrorCode
Source§fn eq(&self, other: &Scan_ErrorCode) -> bool
fn eq(&self, other: &Scan_ErrorCode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for Scan_ErrorCode
impl Eq for Scan_ErrorCode
impl StructuralPartialEq for Scan_ErrorCode
Auto Trait Implementations§
impl Freeze for Scan_ErrorCode
impl RefUnwindSafe for Scan_ErrorCode
impl Send for Scan_ErrorCode
impl Sync for Scan_ErrorCode
impl Unpin for Scan_ErrorCode
impl UnsafeUnpin for Scan_ErrorCode
impl UnwindSafe for Scan_ErrorCode
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