pub struct ReadonlyRepo { /* private fields */ }Implementations§
Source§impl ReadonlyRepo
impl ReadonlyRepo
pub fn default_op_store_initializer() -> &'static OpStoreInitializer<'static>
pub fn default_op_heads_store_initializer() -> &'static OpHeadsStoreInitializer<'static>
pub fn default_index_store_initializer() -> &'static IndexStoreInitializer<'static>
pub fn default_submodule_store_initializer() -> &'static SubmoduleStoreInitializer<'static>
pub async fn init( settings: &UserSettings, repo_path: &Path, backend_initializer: &BackendInitializer<'_>, signer: Signer, op_store_initializer: &OpStoreInitializer<'_>, op_heads_store_initializer: &OpHeadsStoreInitializer<'_>, index_store_initializer: &IndexStoreInitializer<'_>, submodule_store_initializer: &SubmoduleStoreInitializer<'_>, ) -> Result<Arc<Self>, RepoInitError>
pub fn loader(&self) -> &RepoLoader
pub fn op_id(&self) -> &OperationId
pub fn operation(&self) -> &Operation
pub fn view(&self) -> &View
pub fn readonly_index(&self) -> &dyn ReadonlyIndex
pub fn op_heads_store(&self) -> &Arc<dyn OpHeadsStore>
pub fn index_store(&self) -> &Arc<dyn IndexStore>
pub fn settings(&self) -> &UserSettings
pub fn start_transaction(self: &Arc<Self>) -> Transaction
pub async fn reload_at_head(&self) -> Result<Arc<Self>, RepoLoaderError>
pub async fn reload_at( &self, operation: &Operation, ) -> Result<Arc<Self>, RepoLoaderError>
Trait Implementations§
Source§impl Debug for ReadonlyRepo
impl Debug for ReadonlyRepo
Source§impl Repo for ReadonlyRepo
impl Repo for ReadonlyRepo
Source§fn base_repo(&self) -> &ReadonlyRepo
fn base_repo(&self) -> &ReadonlyRepo
Base repository that contains all committed data. Returns
self if this
is a ReadonlyRepo,fn store(&self) -> &Arc<Store>
fn op_store(&self) -> &Arc<dyn OpStore>
fn index(&self) -> &dyn Index
fn view(&self) -> &View
fn submodule_store(&self) -> &Arc<dyn SubmoduleStore>
fn resolve_change_id_prefix( &self, prefix: &HexPrefix, ) -> IndexResult<PrefixResolution<ResolvedChangeTargets>>
fn shortest_unique_change_id_prefix_len( &self, target_id: &ChangeId, ) -> IndexResult<usize>
fn resolve_change_id( &self, change_id: &ChangeId, ) -> IndexResult<Option<ResolvedChangeTargets>>
Auto Trait Implementations§
impl !Freeze for ReadonlyRepo
impl !RefUnwindSafe for ReadonlyRepo
impl Send for ReadonlyRepo
impl Sync for ReadonlyRepo
impl Unpin for ReadonlyRepo
impl UnsafeUnpin for ReadonlyRepo
impl !UnwindSafe for ReadonlyRepo
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> 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