Enum zx::PolicyCode
source · pub enum PolicyCode {
Show 23 variants
BadHandle,
WrongObject,
VmarWriteExecutable,
NewAny,
NewVmo,
NewChannel,
NewEvent,
NewEventPair,
NewPort,
NewSocket,
NewFifo,
NewTimer,
NewProcess,
NewProfile,
NewPager,
AmbientMarkVmoExecutable,
ChannelFullWrite,
PortTooManyPackets,
BadSyscall {
number: u32,
},
PortTooManyObservers,
HandleLeak,
NewIob,
Unknown {
code: u32,
data: u32,
},
}
Variants§
BadHandle
WrongObject
VmarWriteExecutable
NewAny
NewVmo
NewChannel
NewEvent
NewEventPair
NewPort
NewSocket
NewFifo
NewTimer
NewProcess
NewProfile
NewPager
AmbientMarkVmoExecutable
ChannelFullWrite
PortTooManyPackets
BadSyscall
PortTooManyObservers
HandleLeak
An invalid zx_handle_t* was passed to a syscall, resulting in a handle leak. This exception is generated when a thread fails to provide a valid target handle buffer for syscalls that return handles. This is temporary until we have fully migrated to HandleTableV3.
NewIob
Unknown
An unknown policy error.
Trait Implementations§
source§impl Clone for PolicyCode
impl Clone for PolicyCode
source§fn clone(&self) -> PolicyCode
fn clone(&self) -> PolicyCode
Returns a copy of the value. Read more
1.0.0 · 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 PolicyCode
impl Debug for PolicyCode
impl Copy for PolicyCode
Auto Trait Implementations§
impl Freeze for PolicyCode
impl RefUnwindSafe for PolicyCode
impl Send for PolicyCode
impl Sync for PolicyCode
impl Unpin for PolicyCode
impl UnwindSafe for PolicyCode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)