pub struct ReplicationManager { /* private fields */ }
Expand description
Multi-region replication manager
Implementations§
Source§impl ReplicationManager
impl ReplicationManager
Sourcepub async fn new(config: ReplicationConfig) -> Result<Self, OxirsError>
pub async fn new(config: ReplicationConfig) -> Result<Self, OxirsError>
Create new replication manager
Sourcepub async fn start(&self) -> Result<(), OxirsError>
pub async fn start(&self) -> Result<(), OxirsError>
Start replication manager
Sourcepub async fn replicate_write(
&self,
triple: Triple,
op_type: OpType,
) -> Result<(), OxirsError>
pub async fn replicate_write( &self, triple: Triple, op_type: OpType, ) -> Result<(), OxirsError>
Replicate a write operation
Sourcepub async fn query(
&self,
pattern: &TriplePattern,
consistency: ConsistencyLevel,
) -> Result<Vec<Triple>, OxirsError>
pub async fn query( &self, pattern: &TriplePattern, consistency: ConsistencyLevel, ) -> Result<Vec<Triple>, OxirsError>
Query with consistency level
Auto Trait Implementations§
impl Freeze for ReplicationManager
impl !RefUnwindSafe for ReplicationManager
impl Send for ReplicationManager
impl Sync for ReplicationManager
impl Unpin for ReplicationManager
impl !UnwindSafe for ReplicationManager
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> 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