pub struct RespServer { /* private fields */ }Expand description
RESP protocol server
Implementations§
Source§impl RespServer
impl RespServer
Sourcepub fn new(config: ServerConfig, store: Arc<RwLock<GraphStore>>) -> Self
pub fn new(config: ServerConfig, store: Arc<RwLock<GraphStore>>) -> Self
Create a new RESP server (in-memory only, no persistence)
Sourcepub fn new_with_persistence(
config: ServerConfig,
store: Arc<RwLock<GraphStore>>,
persistence: Arc<PersistenceManager>,
) -> Self
pub fn new_with_persistence( config: ServerConfig, store: Arc<RwLock<GraphStore>>, persistence: Arc<PersistenceManager>, ) -> Self
Create a new RESP server with persistence enabled Data will be persisted to disk via WAL + RocksDB
Sourcepub fn new_multi_tenant(
config: ServerConfig,
stores: TenantStoreManager,
) -> Self
pub fn new_multi_tenant( config: ServerConfig, stores: TenantStoreManager, ) -> Self
Create a new RESP server with a multi-tenant store manager
Sourcepub fn new_multi_tenant_with_persistence(
config: ServerConfig,
stores: TenantStoreManager,
persistence: Arc<PersistenceManager>,
) -> Self
pub fn new_multi_tenant_with_persistence( config: ServerConfig, stores: TenantStoreManager, persistence: Arc<PersistenceManager>, ) -> Self
Create a new multi-tenant RESP server with persistence
Sourcepub fn with_sharding(
self,
router: Arc<Router>,
proxy: Arc<Proxy>,
cluster_manager: Arc<ClusterManager>,
) -> Self
pub fn with_sharding( self, router: Arc<Router>, proxy: Arc<Proxy>, cluster_manager: Arc<ClusterManager>, ) -> Self
Enable sharding for this server
Auto Trait Implementations§
impl Freeze for RespServer
impl !RefUnwindSafe for RespServer
impl Send for RespServer
impl Sync for RespServer
impl Unpin for RespServer
impl UnsafeUnpin for RespServer
impl !UnwindSafe for RespServer
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
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> 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 more