pub struct CoreService<Digest: SupportedDigest = Sha256> { /* private fields */ }Implementations§
Source§impl<Digest: SupportedDigest> CoreService<Digest>
impl<Digest: SupportedDigest> CoreService<Digest>
Sourcepub async fn start(
operator_key: PrivateKey,
namespaces: Option<Vec<(String, NamespaceState)>>,
store: Box<dyn DataStore>,
checkpoint_interval: Duration,
) -> Result<(Self, JoinHandle<()>), CoreServiceError>
pub async fn start( operator_key: PrivateKey, namespaces: Option<Vec<(String, NamespaceState)>>, store: Box<dyn DataStore>, checkpoint_interval: Duration, ) -> Result<(Self, JoinHandle<()>), CoreServiceError>
Starts the CoreService, returning a cloneable handle to the
service and a JoinHandle which should be awaited after dropping all
copies of the service handle to allow for graceful shutdown.
Sourcepub async fn log_consistency_proof(
&self,
from_log_length: RegistryLen,
to_log_length: RegistryLen,
) -> Result<LogProofBundle<Digest, LogLeaf>, CoreServiceError>
pub async fn log_consistency_proof( &self, from_log_length: RegistryLen, to_log_length: RegistryLen, ) -> Result<LogProofBundle<Digest, LogLeaf>, CoreServiceError>
Constructs a log consistency proof between the given log tree roots.
Sourcepub async fn log_inclusion_proofs(
&self,
log_length: RegistryLen,
entries: &[RegistryIndex],
) -> Result<LogProofBundle<Digest, LogLeaf>, CoreServiceError>
pub async fn log_inclusion_proofs( &self, log_length: RegistryLen, entries: &[RegistryIndex], ) -> Result<LogProofBundle<Digest, LogLeaf>, CoreServiceError>
Constructs log inclusion proofs for the given entries at the given log tree root.
Sourcepub async fn map_inclusion_proofs(
&self,
log_length: RegistryLen,
entries: &[RegistryIndex],
) -> Result<MapProofBundle<Digest, LogId, MapLeaf>, CoreServiceError>
pub async fn map_inclusion_proofs( &self, log_length: RegistryLen, entries: &[RegistryIndex], ) -> Result<MapProofBundle<Digest, LogId, MapLeaf>, CoreServiceError>
Constructs map inclusion proofs for the given entries at the given map tree root.
Sourcepub fn store(&self) -> &dyn DataStore
pub fn store(&self) -> &dyn DataStore
Gets the data store associated with the transparency service.
Sourcepub async fn submit_package_record(&self, log_id: LogId, record_id: RecordId)
pub async fn submit_package_record(&self, log_id: LogId, record_id: RecordId)
Submits a package record to be processed.
Trait Implementations§
Source§impl<Digest: Clone + SupportedDigest> Clone for CoreService<Digest>
impl<Digest: Clone + SupportedDigest> Clone for CoreService<Digest>
Source§fn clone(&self) -> CoreService<Digest>
fn clone(&self) -> CoreService<Digest>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<Digest> Freeze for CoreService<Digest>
impl<Digest = CoreWrapper<CtVariableCoreWrapper<Sha256VarCore, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, OidSha256>>> !RefUnwindSafe for CoreService<Digest>
impl<Digest> Send for CoreService<Digest>
impl<Digest> Sync for CoreService<Digest>
impl<Digest> Unpin for CoreService<Digest>
impl<Digest = CoreWrapper<CtVariableCoreWrapper<Sha256VarCore, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, OidSha256>>> !UnwindSafe for CoreService<Digest>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more