pub struct FakeServerOptions<'a> {
pub block_count: Option<u64>,
pub block_size: u32,
pub initial_content: Option<&'a [u8]>,
pub vmo: Option<Vmo>,
pub observer: Option<Box<dyn Observer>>,
}
Fields§
§block_count: Option<u64>
§block_size: u32
§initial_content: Option<&'a [u8]>
§vmo: Option<Vmo>
§observer: Option<Box<dyn Observer>>
Trait Implementations§
Source§impl Default for FakeServerOptions<'_>
impl Default for FakeServerOptions<'_>
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<'a> Freeze for FakeServerOptions<'a>
impl<'a> !RefUnwindSafe for FakeServerOptions<'a>
impl<'a> Send for FakeServerOptions<'a>
impl<'a> Sync for FakeServerOptions<'a>
impl<'a> Unpin for FakeServerOptions<'a>
impl<'a> !UnwindSafe for FakeServerOptions<'a>
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