pub struct ServiceContext {
pub replicator: StateReplicatorHandle,
pub partition: Arc<PartitionHandle>,
pub copy_stream: Option<OperationStream>,
pub replication_stream: Option<OperationStream>,
}Expand description
User-facing handles produced by the replicator factory. The user keeps these; the ReplicatorHandle goes to the runtime.
Fields§
§replicator: StateReplicatorHandleWrite handle (primary path).
partition: Arc<PartitionHandle>Read/write access status + fault reporting.
copy_stream: Option<OperationStream>Copy stream (secondary, during build). None on primary.
replication_stream: Option<OperationStream>Replication stream (secondary, during catchup). None on primary.
Auto Trait Implementations§
impl Freeze for ServiceContext
impl RefUnwindSafe for ServiceContext
impl Send for ServiceContext
impl Sync for ServiceContext
impl Unpin for ServiceContext
impl UnsafeUnpin for ServiceContext
impl UnwindSafe for ServiceContext
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request