pub struct Objects<C> {
pub classes: Vec<LoadedClass<C>>,
pub objects: Vec<Instance>,
pub jni: Option<usize>,
/* private fields */
}Expand description
The run unit’s classes and objects, the references to them, and the JNI environment once a program uses JNIENVPTR.
Fields§
§classes: Vec<LoadedClass<C>>§objects: Vec<Instance>§jni: Option<usize>Implementations§
Source§impl<C> Objects<C>
impl<C> Objects<C>
pub fn find(&self, external: &str) -> Option<usize>
pub fn add_object(&mut self, object: Instance) -> Result<u32, String>
pub fn told(&self, event: u32) -> &str
Sourcepub fn local(&mut self, object: u32, made: u32) -> Result<u32, String>
pub fn local(&mut self, object: u32, made: u32) -> Result<u32, String>
A local reference in the innermost frame.
Sourcepub fn local_in(
&mut self,
frame: u32,
object: u32,
made: u32,
) -> Result<u32, String>
pub fn local_in( &mut self, frame: u32, object: u32, made: u32, ) -> Result<u32, String>
A local reference in the frame with this serial.
pub fn global(&mut self, object: u32, made: u32) -> Result<u32, String>
Sourcepub fn push_frame(&mut self, pushed: bool) -> (usize, u32)
pub fn push_frame(&mut self, pushed: bool) -> (usize, u32)
A new local frame, for a method’s invocation or PushLocalFrame: its depth and serial.
Sourcepub fn pop_frames(&mut self, depth: usize, event: u32)
pub fn pop_frames(&mut self, depth: usize, event: u32)
Pops the frame at depth and every frame above it, freeing their local references.
Sourcepub fn pushed_frame(&self) -> Option<usize>
pub fn pushed_frame(&self) -> Option<usize>
The depth of the innermost frame when PushLocalFrame pushed it.
pub fn referent(&self, value: u32) -> Referent
pub fn is_global(&self, value: u32) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for Objects<C>
impl<C> RefUnwindSafe for Objects<C>
impl<C> Send for Objects<C>
impl<C> Sync for Objects<C>
impl<C> Unpin for Objects<C>
impl<C> UnsafeUnpin for Objects<C>
impl<C> UnwindSafe for Objects<C>
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