Skip to main content

Method

Trait Method 

Source
pub trait Method:
    Sync
    + Send
    + AsAny
    + Debug {
    // Required methods
    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;
}

Required Methods§

Source

fn name(&self) -> Cow<'_, str>

Source

fn descriptor(&self) -> Cow<'_, str>

Source

fn access_flags(&self) -> MethodAccessFlags

Source

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,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§