pub struct OpenContext {
pub replica_id: ReplicaId,
pub open_mode: OpenMode,
pub data_bind: String,
pub token: CancellationToken,
pub fault_tx: Sender<FaultType>,
}Expand description
Context provided to the user at Open time. Contains what the user needs to create a replicator (bind addresses, replica ID, etc.)
Fields§
§replica_id: ReplicaId§open_mode: OpenModeNew vs Existing — the replicator needs this for initialization.
data_bind: StringAddress for the data plane gRPC server.
token: CancellationTokenCancellation token for the replica’s lifetime.
fault_tx: Sender<FaultType>Fault reporting channel (runtime holds the receiver).
Auto Trait Implementations§
impl Freeze for OpenContext
impl RefUnwindSafe for OpenContext
impl Send for OpenContext
impl Sync for OpenContext
impl Unpin for OpenContext
impl UnsafeUnpin for OpenContext
impl UnwindSafe for OpenContext
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