pub struct TestEnv<IO: Io = StdIO> {
pub tmp: Arc<TempDir>,
pub registry: Arc<WalRegistry<IO, TestStorage<IO>>>,
pub wal: LibsqlWalManager<IO, TestStorage<IO>>,
}Fields§
§tmp: Arc<TempDir>§registry: Arc<WalRegistry<IO, TestStorage<IO>>>§wal: LibsqlWalManager<IO, TestStorage<IO>>Implementations§
Source§impl<IO: Io + Clone> TestEnv<IO>
impl<IO: Io + Clone> TestEnv<IO>
pub fn new_io(io: IO, store: bool) -> Self
pub fn new_io_and_tmp(io: IO, tmp: Arc<TempDir>, store: bool) -> Self
pub fn db_path(&self, namespace: &str) -> PathBuf
pub fn open_conn(&self, namespace: &'static str) -> Connection<LibsqlWal<IO>>
pub fn db_file(&self, namespace: &str) -> File
Auto Trait Implementations§
impl<IO> Freeze for TestEnv<IO>
impl<IO = StdIO> !RefUnwindSafe for TestEnv<IO>
impl<IO> Send for TestEnv<IO>
impl<IO> Sync for TestEnv<IO>
impl<IO> Unpin for TestEnv<IO>
impl<IO = StdIO> !UnwindSafe for TestEnv<IO>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.