Struct qt_core::q_shared_memory::SharedMemoryError
source · pub struct SharedMemoryError(/* private fields */);
Expand description
C++ enum: QSharedMemory::SharedMemoryError
.
Implementations§
sourcepub const NoError: SharedMemoryError = _
pub const NoError: SharedMemoryError = _
No error occurred. (C++ enum variant: NoError = 0
)
sourcepub const PermissionDenied: SharedMemoryError = _
pub const PermissionDenied: SharedMemoryError = _
The operation failed because the caller didn’t have the required permissions. (C++ enum variant: PermissionDenied = 1
)
sourcepub const InvalidSize: SharedMemoryError = _
pub const InvalidSize: SharedMemoryError = _
A create operation failed because the requested size was invalid. (C++ enum variant: InvalidSize = 2
)
sourcepub const KeyError: SharedMemoryError = _
pub const KeyError: SharedMemoryError = _
The operation failed because of an invalid key. (C++ enum variant: KeyError = 3
)
sourcepub const AlreadyExists: SharedMemoryError = _
pub const AlreadyExists: SharedMemoryError = _
A create() operation failed because a shared memory segment with the specified key already existed. (C++ enum variant: AlreadyExists = 4
)
sourcepub const NotFound: SharedMemoryError = _
pub const NotFound: SharedMemoryError = _
An attach() failed because a shared memory segment with the specified key could not be found. (C++ enum variant: NotFound = 5
)
sourcepub const LockError: SharedMemoryError = _
pub const LockError: SharedMemoryError = _
The attempt to lock() the shared memory segment failed because create() or attach() failed and returned false, or because a system error occurred in QSystemSemaphore::acquire(). (C++ enum variant: LockError = 6
)
sourcepub const OutOfResources: SharedMemoryError = _
pub const OutOfResources: SharedMemoryError = _
A create() operation failed because there was not enough memory available to fill the request. (C++ enum variant: OutOfResources = 7
)
sourcepub const UnknownError: SharedMemoryError = _
pub const UnknownError: SharedMemoryError = _
Something else happened and it was bad. (C++ enum variant: UnknownError = 8
)
Trait Implementations§
source§fn clone(&self) -> SharedMemoryError
fn clone(&self) -> SharedMemoryError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§fn from(value: SharedMemoryError) -> Self
fn from(value: SharedMemoryError) -> Self
source§fn eq(&self, other: &SharedMemoryError) -> bool
fn eq(&self, other: &SharedMemoryError) -> bool
self
and other
values to be equal, and is used
by ==
.