pub struct ReplicatedAuthorityPartitionService { /* private fields */ }Implementations§
Source§impl ReplicatedAuthorityPartitionService
impl ReplicatedAuthorityPartitionService
pub fn open( root: impl AsRef<Path>, configs: Vec<AuthorityPartitionConfig>, ) -> Result<Self, ApiError>
pub fn root(&self) -> &Path
pub fn append_partition( &mut self, request: PartitionAppendRequest, ) -> Result<PartitionAppendResponse, ApiError>
pub fn partition_history( &self, request: PartitionHistoryRequest, ) -> Result<PartitionHistoryResponse, ApiError>
pub fn partition_state( &self, request: PartitionStateRequest, ) -> Result<PartitionStateResponse, ApiError>
pub fn federated_history( &self, request: FederatedHistoryRequest, ) -> Result<FederatedHistoryResponse, ApiError>
pub fn import_partition_facts( &mut self, request: ImportedFactQueryRequest, policy_context: Option<PolicyContext>, ) -> Result<ImportedFactQueryResponse, ApiError>
pub fn federated_run_document( &mut self, request: FederatedRunDocumentRequest, ) -> Result<FederatedRunDocumentResponse, ApiError>
pub fn build_federated_explain_report( &mut self, request: FederatedRunDocumentRequest, ) -> Result<FederatedExplainReport, ApiError>
pub fn partition_status(&self) -> Result<PartitionStatusResponse, ApiError>
pub fn promote_replica( &mut self, request: PromoteReplicaRequest, ) -> Result<PromoteReplicaResponse, ApiError>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ReplicatedAuthorityPartitionService
impl !RefUnwindSafe for ReplicatedAuthorityPartitionService
impl Send for ReplicatedAuthorityPartitionService
impl !Sync for ReplicatedAuthorityPartitionService
impl Unpin for ReplicatedAuthorityPartitionService
impl !UnwindSafe for ReplicatedAuthorityPartitionService
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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