pub struct Credo(_);Implementations
sourceimpl Credo
impl Credo
pub fn new(name: String, background: Mofo) -> Credo
pub fn new_with_telepathy(
name: String,
telepathy: Node,
background: Mofo
) -> Credo
pub fn new_with_telepathy_and_credential_source<C: CredentialSource + 'static>(
name: String,
telepathy: Node,
credential_source: C,
background: Mofo
) -> Credo
pub async fn create_scope(
&self,
initial_recipient: Credential,
initial_permissions: Vec<PermissionKind>,
parent_scope: Option<ScopeID>
) -> ScopeID
pub async fn subscribe(&self, scope_id: ScopeID, listener: Listener<ScopeState>)
pub async fn make_claim(
&self,
scope_id: &ScopeID,
kind: ClaimKind,
prev: Vec<ClaimID>
) -> Result<ClaimID, MakeClaimError>
pub async fn make_claim_after_frontier(
&self,
scope_id: &ScopeID,
kind: ClaimKind
) -> Result<ClaimID, MakeClaimError>
pub async fn add_credential(&self, scope_id: ScopeID, credential: Credential)
pub fn all_credentials_for<'a>(
&'a self,
scope_id: &'a ScopeID
) -> Pin<Box<dyn Future<Output = Vec<Credential>> + 'a>>
pub fn current_combined_claims_for(&self, scope_id: &ScopeID) -> CombinedClaimSet
pub fn current_state_as_of(
&self,
scope_id: &ScopeID,
as_of: MsSinceEpoch
) -> ScopeState
pub async fn write_access_for(
&self,
scope_id: &ScopeID
) -> Result<WriteAccess, GetWriteAccessError>
pub async fn credential_for(
&self,
scope_id: &ScopeID,
claim_kind: &ClaimKind
) -> Option<Credential>
pub async fn entrust_secret_to<S: Serialize>(
&self,
scope_id: &ScopeID,
secret_kind: &str,
entrusted_secret_name: &str,
secret: S
) -> Result<Vec<ClaimID>, EntrustSecretError>
pub async fn try_decrypt_entrusted_secret<S: DeserializeOwned>(
&self,
scope_id: &ScopeID,
secret_kind: &str,
entrusted_secret_name: &str
) -> Result<S, GetEntrustedSecretError>
pub async fn add_remote(&self, remote: Remote)
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Credo
impl !Send for Credo
impl !Sync for Credo
impl Unpin for Credo
impl !UnwindSafe for Credo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more