pub struct RedisServer {
pub process: Child,
pub tempdir: TempDir,
pub log_file: PathBuf,
pub addr: ConnectionAddr,
pub tls_paths: Option<TlsFilePaths>,
}
Fields§
§process: Child
§tempdir: TempDir
§log_file: PathBuf
§addr: ConnectionAddr
§tls_paths: Option<TlsFilePaths>
Implementations§
Source§impl RedisServer
impl RedisServer
pub fn new() -> RedisServer
pub fn new_with_mtls() -> RedisServer
pub fn log_file_contents(&self) -> Option<String>
pub fn get_addr(port: u16) -> ConnectionAddr
pub fn with_modules(modules: &[Module], mtls_enabled: bool) -> RedisServer
pub fn new_with_addr_and_modules( addr: ConnectionAddr, modules: &[Module], mtls_enabled: bool, ) -> RedisServer
pub fn new_with_addr_tls_modules_and_spawner<F: FnOnce(&mut Command) -> Child>( addr: ConnectionAddr, config_file: Option<&Path>, tls_paths: Option<TlsFilePaths>, mtls_enabled: bool, modules: &[Module], spawner: F, ) -> RedisServer
pub fn client_addr(&self) -> &ConnectionAddr
pub fn connection_info(&self) -> ConnectionInfo
pub fn stop(&mut self)
pub fn log_file(tempdir: &TempDir) -> PathBuf
Trait Implementations§
Source§impl Default for RedisServer
impl Default for RedisServer
Auto Trait Implementations§
impl Freeze for RedisServer
impl RefUnwindSafe for RedisServer
impl Send for RedisServer
impl Sync for RedisServer
impl Unpin for RedisServer
impl UnwindSafe for RedisServer
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