Struct oasis_core_runtime::enclave_rpc::client::RpcClient
source · pub struct RpcClient { /* private fields */ }
Expand description
RPC client.
Implementations§
source§impl RpcClient
impl RpcClient
sourcepub fn new_runtime(
protocol: Arc<Protocol>,
endpoint: &str,
builder: Builder,
max_sessions: usize,
max_sessions_per_peer: usize,
stale_session_timeout: i64,
) -> Self
pub fn new_runtime( protocol: Arc<Protocol>, endpoint: &str, builder: Builder, max_sessions: usize, max_sessions_per_peer: usize, stale_session_timeout: i64, ) -> Self
Construct an unconnected RPC client with runtime-internal transport.
sourcepub async fn update_enclaves(&self, enclaves: Option<HashSet<EnclaveIdentity>>)
pub async fn update_enclaves(&self, enclaves: Option<HashSet<EnclaveIdentity>>)
Update allowed remote enclave identities.
sourcepub async fn update_quote_policy(&self, policy: QuotePolicy)
pub async fn update_quote_policy(&self, policy: QuotePolicy)
Update remote end’s quote policy.
sourcepub async fn update_runtime_id(&self, id: Option<Namespace>)
pub async fn update_runtime_id(&self, id: Option<Namespace>)
Update remote runtime id.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RpcClient
impl !RefUnwindSafe for RpcClient
impl Send for RpcClient
impl Sync for RpcClient
impl Unpin for RpcClient
impl !UnwindSafe for RpcClient
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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