pub struct MethodImpl { /* private fields */ }Implementations§
Source§impl MethodImpl
impl MethodImpl
pub fn new( name: &str, descriptor: &str, body: MethodBody, access_flags: MethodAccessFlags, ) -> Self
pub fn from_method_proto<C, Context>( proto: JavaMethodProto<C>, context: Context, ) -> Self
pub fn from_method_info(method_info: MethodInfo) -> Self
Trait Implementations§
Source§impl Clone for MethodImpl
impl Clone for MethodImpl
Source§fn clone(&self) -> MethodImpl
fn clone(&self) -> MethodImpl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MethodImpl
impl Debug for MethodImpl
Source§impl Method for MethodImpl
impl Method for MethodImpl
fn name(&self) -> Cow<'_, str>
fn descriptor(&self) -> Cow<'_, str>
fn access_flags(&self) -> MethodAccessFlags
fn run<'life0, 'life1, 'async_trait>(
&'life0 self,
jvm: &'life1 Jvm,
args: Box<[JavaValue]>,
) -> Pin<Box<dyn Future<Output = Result<JavaValue>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for MethodImpl
impl !UnwindSafe for MethodImpl
impl Freeze for MethodImpl
impl Send for MethodImpl
impl Sync for MethodImpl
impl Unpin for MethodImpl
impl UnsafeUnpin for MethodImpl
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