trustResult

suspend fun trustResult(block: suspend TrustBuilder.() -> Unit): TrustOperationResult

Sealed-result form of trust: TrustOperationResult.Completed when block ran, TrustOperationResult.NotConfigured without a trust registry (block not run) and TrustOperationResult.Failure when block or the registry threw. Coroutine cancellation is rethrown.