pub struct MongoEmbedded {
pub version: String,
pub download_path: PathBuf,
pub extract_path: PathBuf,
pub db_path: PathBuf,
pub port: u16,
pub bind_ip: String,
}Fields§
§version: String§download_path: PathBuf§extract_path: PathBuf§db_path: PathBuf§port: u16§bind_ip: StringImplementations§
Source§impl MongoEmbedded
impl MongoEmbedded
pub fn new(version: &str) -> Result<Self>
pub fn set_port(self, port: u16) -> Self
pub fn set_bind_ip(self, bind_ip: &str) -> Self
pub fn set_db_path(self, path: PathBuf) -> Self
pub fn is_installed(&self) -> bool
pub async fn start(&self) -> Result<MongoProcess>
pub async fn start_with_progress<F>(&self, callback: F) -> Result<MongoProcess>where
F: FnMut(InitStatus),
Auto Trait Implementations§
impl Freeze for MongoEmbedded
impl RefUnwindSafe for MongoEmbedded
impl Send for MongoEmbedded
impl Sync for MongoEmbedded
impl Unpin for MongoEmbedded
impl UnwindSafe for MongoEmbedded
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