Skip to main content

Runtime

Trait Runtime 

Source
pub trait Runtime:
    Sync
    + Send
    + DynClone {
Show 17 methods // Required methods fn sleep<'life0, 'async_trait>( &'life0 self, duration: Duration, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn yield<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn spawn(&self, jvm: &Jvm, callback: Box<dyn SpawnCallback>); fn exit(&self, status: i32); fn now(&self) -> u64; fn current_task_id(&self) -> u64; fn stdin(&self) -> IOResult<FileDescriptorId>; fn stdout(&self) -> IOResult<FileDescriptorId>; fn stderr(&self) -> IOResult<FileDescriptorId>; fn open<'life0, 'life1, 'async_trait>( &'life0 self, path: &'life1 str, options: FileOpenOptions, ) -> Pin<Box<dyn Future<Output = IOResult<FileDescriptorId>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_file(&self, fd: FileDescriptorId) -> IOResult<Box<dyn File>>; fn close_file(&self, fd: FileDescriptorId); fn unlink<'life0, 'life1, 'async_trait>( &'life0 self, path: &'life1 str, ) -> Pin<Box<dyn Future<Output = IOResult<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn metadata<'life0, 'life1, 'async_trait>( &'life0 self, path: &'life1 str, ) -> Pin<Box<dyn Future<Output = IOResult<FileStat>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn find_rustjar_class<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, jvm: &'life1 Jvm, classpath: &'life2 str, class: &'life3 str, ) -> Pin<Box<dyn Future<Output = JvmResult<Option<Box<dyn ClassDefinition>>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait; fn define_class<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, jvm: &'life1 Jvm, data: &'life2 [u8], ) -> Pin<Box<dyn Future<Output = JvmResult<Box<dyn ClassDefinition>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn define_array_class<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, jvm: &'life1 Jvm, element_type_name: &'life2 str, ) -> Pin<Box<dyn Future<Output = JvmResult<Box<dyn ClassDefinition>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait;
}

Required Methods§

Source

fn sleep<'life0, 'async_trait>( &'life0 self, duration: Duration, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn yield<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn spawn(&self, jvm: &Jvm, callback: Box<dyn SpawnCallback>)

Source

fn exit(&self, status: i32)

Source

fn now(&self) -> u64

Source

fn current_task_id(&self) -> u64

Source

fn stdin(&self) -> IOResult<FileDescriptorId>

Source

fn stdout(&self) -> IOResult<FileDescriptorId>

Source

fn stderr(&self) -> IOResult<FileDescriptorId>

Source

fn open<'life0, 'life1, 'async_trait>( &'life0 self, path: &'life1 str, options: FileOpenOptions, ) -> Pin<Box<dyn Future<Output = IOResult<FileDescriptorId>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_file(&self, fd: FileDescriptorId) -> IOResult<Box<dyn File>>

Source

fn close_file(&self, fd: FileDescriptorId)

Source

fn metadata<'life0, 'life1, 'async_trait>( &'life0 self, path: &'life1 str, ) -> Pin<Box<dyn Future<Output = IOResult<FileStat>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn find_rustjar_class<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, jvm: &'life1 Jvm, classpath: &'life2 str, class: &'life3 str, ) -> Pin<Box<dyn Future<Output = JvmResult<Option<Box<dyn ClassDefinition>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn define_class<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, jvm: &'life1 Jvm, data: &'life2 [u8], ) -> Pin<Box<dyn Future<Output = JvmResult<Box<dyn ClassDefinition>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn define_array_class<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, jvm: &'life1 Jvm, element_type_name: &'life2 str, ) -> Pin<Box<dyn Future<Output = JvmResult<Box<dyn ClassDefinition>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§