Struct oasis_core_runtime::enclave_rpc::session::Builder
source · pub struct Builder { /* private fields */ }
Expand description
Session builder.
Implementations§
source§impl Builder
impl Builder
sourcepub fn get_remote_enclaves(&self) -> &Option<HashSet<EnclaveIdentity>>
pub fn get_remote_enclaves(&self) -> &Option<HashSet<EnclaveIdentity>>
Return remote enclave identities if configured in the builder.
sourcepub fn remote_enclaves(self, enclaves: Option<HashSet<EnclaveIdentity>>) -> Self
pub fn remote_enclaves(self, enclaves: Option<HashSet<EnclaveIdentity>>) -> Self
Enable remote enclave identity verification.
sourcepub fn get_remote_runtime_id(&self) -> &Option<Namespace>
pub fn get_remote_runtime_id(&self) -> &Option<Namespace>
Return remote runtime ID if configured in the builder.
sourcepub fn remote_runtime_id(self, id: Option<Namespace>) -> Self
pub fn remote_runtime_id(self, id: Option<Namespace>) -> Self
Set remote runtime ID for node identity verification.
sourcepub fn consensus_verifier(self, verifier: Option<Arc<dyn Verifier>>) -> Self
pub fn consensus_verifier(self, verifier: Option<Arc<dyn Verifier>>) -> Self
Enable remote node identity verification.
sourcepub fn get_quote_policy(&self) -> &Option<Arc<QuotePolicy>>
pub fn get_quote_policy(&self) -> &Option<Arc<QuotePolicy>>
Return quote policy if configured in the builder.
sourcepub fn quote_policy(self, policy: Option<Arc<QuotePolicy>>) -> Self
pub fn quote_policy(self, policy: Option<Arc<QuotePolicy>>) -> Self
Configure quote policy used for remote quote verification.
sourcepub fn use_endorsement(self, use_endorsement: bool) -> Self
pub fn use_endorsement(self, use_endorsement: bool) -> Self
Use endorsement from host node when establishing sessions.
sourcepub fn get_local_identity(&self) -> &Option<Arc<Identity>>
pub fn get_local_identity(&self) -> &Option<Arc<Identity>>
Return the local identity if configured in the builder.
sourcepub fn local_identity(self, identity: Arc<Identity>) -> Self
pub fn local_identity(self, identity: Arc<Identity>) -> Self
Enable RAK binding.
sourcepub fn build_initiator(self) -> Session
pub fn build_initiator(self) -> Session
Build initiator session.
sourcepub fn build_responder(self) -> Session
pub fn build_responder(self) -> Session
Build responder session.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl !RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl !UnwindSafe for Builder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)