Struct xpcom::interfaces::mozIStorageError
[−]
[src]
#[repr(C)]pub struct mozIStorageError { /* fields omitted */ }
interface mozIStorageError : nsISupports
Methods
impl mozIStorageError
[src]
pub fn coerce<T: mozIStorageErrorCoerce>(&self) -> &T
[src]
Cast this mozIStorageError
to one of its base interfaces.
impl mozIStorageError
[src]
pub const ERROR: i64
ERROR: i64 = 1
/**
* General SQL error or missing database.
*/
pub const INTERNAL: i64
INTERNAL: i64 = 2
/**
* Internal logic error.
*/
pub const PERM: i64
PERM: i64 = 3
/**
* Access permission denied.
*/
pub const ABORT: i64
ABORT: i64 = 4
/**
* A callback routine requested an abort.
*/
pub const BUSY: i64
BUSY: i64 = 5
/**
* The database file is locked.
*/
pub const LOCKED: i64
LOCKED: i64 = 6
/**
* A table in the database is locked.
*/
pub const NOMEM: i64
NOMEM: i64 = 7
/**
* An allocation failed.
*/
pub const READONLY: i64
READONLY: i64 = 8
/**
* Attempt to write to a readonly database.
*/
pub const INTERRUPT: i64
INTERRUPT: i64 = 9
/**
* Operation was terminated by an interrupt.
*/
pub const IOERR: i64
IOERR: i64 = 10
/**
* Some kind of disk I/O error occurred.
*/
pub const CORRUPT: i64
CORRUPT: i64 = 11
/**
* The database disk image is malformed.
*/
pub const FULL: i64
FULL: i64 = 13
/**
* An insertion failed because the database is full.
*/
pub const CANTOPEN: i64
CANTOPEN: i64 = 14
/**
* Unable to open the database file.
*/
pub const EMPTY: i64
EMPTY: i64 = 16
/**
* The database is empty.
*/
pub const SCHEMA: i64
SCHEMA: i64 = 17
/**
* The database scheme changed.
*/
pub const TOOBIG: i64
TOOBIG: i64 = 18
/**
* A string or blob exceeds the size limit.
*/
pub const CONSTRAINT: i64
CONSTRAINT: i64 = 19
/**
* Abort due to a constraint violation.
*/
pub const MISMATCH: i64
MISMATCH: i64 = 20
/**
* Data type mismatch.
*/
pub const MISUSE: i64
MISUSE: i64 = 21
/**
* Library used incorrectly.
*/
pub const NOLFS: i64
NOLFS: i64 = 22
/**
* Uses OS features not supported on the host system.
*/
pub const AUTH: i64
AUTH: i64 = 23
/**
* Authorization denied.
*/
pub const FORMAT: i64
FORMAT: i64 = 24
/**
* Auxiliary database format error.
*/
pub const RANGE: i64
RANGE: i64 = 25
/**
* Attempt to bind a parameter using an out-of-range index or nonexistent
* named parameter name.
*/
pub const NOTADB: i64
NOTADB: i64 = 26
/**
* File opened that is not a database file.
*/
pub unsafe fn GetResult(&self, aResult: *mut int32_t) -> nsresult
[src]
/**
* Indicates what type of error occurred.
*/
readonly attribute long result;
pub unsafe fn GetMessage(&self, aMessage: &mut nsACString) -> nsresult
[src]
/**
* An error string the gives more details, if available.
*/
readonly attribute AUTF8String message;
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for mozIStorageError
[src]
const IID: nsIID
IID: nsIID = nsID(523571094, 28707, 17226, [136, 100, 64, 161, 196, 147, 170, 193])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for mozIStorageError
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for mozIStorageError
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.