Skip to main content

IoService

Trait IoService 

Source
pub trait IoService: Send + Sync {
    // Required method
    fn session(&self) -> Arc<dyn IoSource> ⓘ;
}
Expand description

A byte source’s IO service, shared by everything that reads the source.

Each registration scope reads through its own IoSource, and the service is free to share and coalesce the reads of all of them.

Required Methods§

Source

fn session(&self) -> Arc<dyn IoSource> ⓘ

A fresh source for one registration scope.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§