pub struct FakeServer { /* private fields */ }
Implementations§
Source§impl FakeServer
impl FakeServer
pub fn new(block_count: u64, block_size: u32, initial_content: &[u8]) -> Self
pub fn from_vmo(block_size: u32, vmo: Vmo) -> Self
pub async fn serve(&self, requests: VolumeRequestStream) -> Result<(), Error>
pub fn volume_proxy(self: &Arc<Self>) -> VolumeProxy
pub fn block_proxy(self: &Arc<Self>) -> BlockProxy
Trait Implementations§
Source§impl From<FakeServerOptions<'_>> for FakeServer
impl From<FakeServerOptions<'_>> for FakeServer
Source§fn from(options: FakeServerOptions<'_>) -> Self
fn from(options: FakeServerOptions<'_>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FakeServer
impl !RefUnwindSafe for FakeServer
impl Send for FakeServer
impl Sync for FakeServer
impl Unpin for FakeServer
impl !UnwindSafe for FakeServer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more