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§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
)