pub struct Call<'frame> { /* private fields */ }Implementations§
Source§impl<'frame> Call<'frame>
impl<'frame> Call<'frame>
Sourcepub unsafe fn from_execute_data(execute_data: *mut c_void) -> Self
pub unsafe fn from_execute_data(execute_data: *mut c_void) -> Self
Opens a borrowed view over PHP’s current call frame.
§Safety
execute_data must be the valid call-frame pointer PHP passed to the
active native function. The returned value must not outlive that call.
pub fn num_args(&self) -> u32
pub fn arg(&self, n: usize) -> Option<NonNull<ReturnValue>>
pub fn arg_string(&'frame self, n: usize) -> Option<&'frame [u8]>
Auto Trait Implementations§
impl<'frame> !Send for Call<'frame>
impl<'frame> !Sync for Call<'frame>
impl<'frame> Freeze for Call<'frame>
impl<'frame> RefUnwindSafe for Call<'frame>
impl<'frame> Unpin for Call<'frame>
impl<'frame> UnsafeUnpin for Call<'frame>
impl<'frame> UnwindSafe for Call<'frame>
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