pub struct Scope(/* private fields */);Implementations§
Source§impl Scope
impl Scope
pub fn id(&self) -> ScopeID
pub fn node(&self) -> Credo
pub fn full_id(&self) -> String
pub fn new( node: Credo, scope_id: ScopeID, telepathy: Node, credential_source: Box<dyn CredentialSource>, background: Mofo, ) -> Self
pub fn updates( &self, listener_prefix: String, ) -> impl Stream<Item = ScopeState> + 'static
pub async fn make_claim_after( &self, kind: ClaimBody, prev: Vec<ClaimID>, ) -> Result<ClaimID, MakeClaimError>
pub async fn make_claim( &self, kind: ClaimBody, ) -> Result<ClaimID, MakeClaimError>
pub fn all_credentials<'a>( &'a self, ) -> Pin<Box<dyn Future<Output = Vec<Credential>> + 'a>>
pub fn current_combined_claims(&self) -> CombinedClaimSet
pub fn current_state_as_of(&self, as_of: MsSinceEpoch) -> ScopeState
pub async fn write_access(&self) -> Result<WriteAccess, GetWriteAccessError>
pub async fn credential_for(&self, claim_kind: &ClaimBody) -> Option<Credential>
pub async fn await_credential_for(&self, claim_kind: &ClaimBody) -> Credential
pub async fn entrust_secret_to<S: Serialize>( &self, secret_kind: &str, entrusted_secret_name: &str, secret: S, ) -> Result<Vec<ClaimID>, EntrustSecretError>
pub async fn try_decrypt_entrusted_secret<S: DeserializeOwned>( &self, secret_kind: &str, entrusted_secret_name: &str, ) -> Result<S, GetEntrustedSecretError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scope
impl !RefUnwindSafe for Scope
impl !Send for Scope
impl !Sync for Scope
impl Unpin for Scope
impl !UnwindSafe for Scope
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