pub trait VmoBackedServerTestingExt {
// Required methods
fn new(block_count: u64, block_size: u32, initial_content: &[u8]) -> Self;
fn from_vmo(block_size: u32, vmo: Vmo) -> Self;
fn volume_proxy(self: &Arc<Self>) -> VolumeProxy;
fn connect(self: &Arc<Self>, server: ServerEnd<VolumeMarker>);
fn block_proxy(self: &Arc<Self>) -> BlockProxy;
}
Expand description
Extension trait for test-only functionality. unwrap
is used liberally in these functions, to
simplify their usage in tests.
Required Methods§
fn new(block_count: u64, block_size: u32, initial_content: &[u8]) -> Self
fn from_vmo(block_size: u32, vmo: Vmo) -> Self
fn volume_proxy(self: &Arc<Self>) -> VolumeProxy
fn connect(self: &Arc<Self>, server: ServerEnd<VolumeMarker>)
fn block_proxy(self: &Arc<Self>) -> BlockProxy
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.