Struct ate::mesh::ChainGuard [−][src]
pub struct ChainGuard { /* fields omitted */ }Implementations
Opens a data access layer that allows mutable changes to data. Transaction consistency on commit will be guarranted for local redo log files
Opens a data access layer that allows mutable changes to data (in a fire-and-forget mode). No transaction consistency on commits will be enforced
Opens a data access layer that allows mutable changes to data. Transaction consistency on commit will be guarranted for all remote replicas
pub async fn dio_trans(
&self,
session: &dyn AteSession,
scope: TransactionScope
) -> Arc<DioMut>
pub async fn dio_trans(
&self,
session: &dyn AteSession,
scope: TransactionScope
) -> Arc<DioMut>
Opens a data access layer that allows mutable changes to data. Transaction consistency on commit must be specified
pub async fn invoke<REQ, RES, ERR>(
&self,
request: REQ
) -> Result<Result<RES, ERR>, InvokeError> where
REQ: Clone + Serialize + DeserializeOwned + Sync + Send + ?Sized,
RES: Serialize + DeserializeOwned + Sync + Send + ?Sized,
ERR: Serialize + DeserializeOwned + Sync + Send + ?Sized,
pub async fn invoke_ext<REQ, RES, ERR>(
&self,
session: Option<&dyn AteSession>,
request: REQ,
timeout: Duration
) -> Result<Result<RES, ERR>, InvokeError> where
REQ: Clone + Serialize + DeserializeOwned + Sync + Send + ?Sized,
RES: Serialize + DeserializeOwned + Sync + Send + ?Sized,
ERR: Serialize + DeserializeOwned + Sync + Send + ?Sized,
Methods from Deref<Target = Chain>
Opens a data access layer that allows mutable changes to data. Transaction consistency on commit will be guarranted for local redo log files
Opens a data access layer that allows mutable changes to data (in a fire-and-forget mode). No transaction consistency on commits will be enforced
Opens a data access layer that allows mutable changes to data. Transaction consistency on commit will be guarranted for all remote replicas
pub async fn dio_trans(
self: &Arc<Chain>,
session: &dyn AteSession,
scope: TransactionScope
) -> Arc<DioMut>
pub async fn dio_trans(
self: &Arc<Chain>,
session: &dyn AteSession,
scope: TransactionScope
) -> Arc<DioMut>
Opens a data access layer that allows mutable changes to data. Transaction consistency on commit must be specified
pub async fn invoke<REQ, RES, ERR>(
self: Arc<Self>,
request: REQ
) -> Result<Result<RES, ERR>, InvokeError> where
REQ: Clone + Serialize + DeserializeOwned + Sync + Send + ?Sized,
RES: Serialize + DeserializeOwned + Sync + Send + ?Sized,
ERR: Serialize + DeserializeOwned + Sync + Send + ?Sized,
pub async fn invoke_ext<REQ, RES, ERR>(
self: Arc<Self>,
session: Option<&dyn AteSession>,
request: REQ,
timeout: Duration
) -> Result<Result<RES, ERR>, InvokeError> where
REQ: Clone + Serialize + DeserializeOwned + Sync + Send + ?Sized,
RES: Serialize + DeserializeOwned + Sync + Send + ?Sized,
ERR: Serialize + DeserializeOwned + Sync + Send + ?Sized,
pub fn add_service<CTX, REQ, RES, ERR, C, F>(
self: &Arc<Self>,
session: &dyn AteSession,
context: Arc<CTX>,
callback: C
) -> Arc<ServiceHook> where
CTX: Send + Sync + 'static,
REQ: DeserializeOwned + Send + Sync + Sized + 'static,
RES: Serialize + Send + Sync + Sized + 'static,
ERR: Serialize + Send + Sync + Sized + 'static,
C: Fn(Arc<CTX>, REQ) -> F + Send + 'static,
F: Future<Output = Result<RES, ERR>> + Send + 'static,
pub fn add_generic_service(
self: &Arc<Self>,
session: Box<dyn AteSession>,
handler: &Arc<dyn ServiceInvoker>
) -> Arc<ServiceHook>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ChainGuard
impl Send for ChainGuard
impl Sync for ChainGuard
impl Unpin for ChainGuard
impl !UnwindSafe for ChainGuard
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
