pub trait AsIoProviderMut {
    fn as_ioprovider_mut(&mut self) -> &mut dyn IoProvider;
}
Expand description

A hack to allow casting of Bundles to IoProviders.

The code that sets up the I/O stack is handed a reference to a Bundle trait object. For the actual I/O, it needs to convert this to an IoProvider trait object. According to StackExchange, the following pattern is the least-bad way to achieve the necessary upcasting.

Required Methods§

Represent this value as an IoProvider trait object.

Implementors§