pub struct Service<T>where
T: XrpcClient + Send + Sync,{
pub xrpc: Arc<T>,
}Fields§
§xrpc: Arc<T>Implementations§
source§impl<T> Service<T>where
T: XrpcClient + Send + Sync,
impl<T> Service<T>where T: XrpcClient + Send + Sync,
pub fn new(xrpc: Arc<T>) -> Self
sourcepub async fn get_blob(
&self,
params: Parameters
) -> Result<Vec<u8>, Error<Error>>
pub async fn get_blob( &self, params: Parameters ) -> Result<Vec<u8>, Error<Error>>
Get a blob associated with a given repo.
sourcepub async fn get_blocks(
&self,
params: Parameters
) -> Result<Vec<u8>, Error<Error>>
pub async fn get_blocks( &self, params: Parameters ) -> Result<Vec<u8>, Error<Error>>
Gets blocks from a given repo.
sourcepub async fn get_checkout(
&self,
params: Parameters
) -> Result<Vec<u8>, Error<Error>>
pub async fn get_checkout( &self, params: Parameters ) -> Result<Vec<u8>, Error<Error>>
Gets the repo state.
sourcepub async fn get_commit_path(
&self,
params: Parameters
) -> Result<Output, Error<Error>>
pub async fn get_commit_path( &self, params: Parameters ) -> Result<Output, Error<Error>>
Gets the path of repo commits
sourcepub async fn get_head(&self, params: Parameters) -> Result<Output, Error<Error>>
pub async fn get_head(&self, params: Parameters) -> Result<Output, Error<Error>>
Gets the current HEAD CID of a repo.
sourcepub async fn get_record(
&self,
params: Parameters
) -> Result<Vec<u8>, Error<Error>>
pub async fn get_record( &self, params: Parameters ) -> Result<Vec<u8>, Error<Error>>
Gets blocks needed for existence or non-existence of record.
sourcepub async fn get_repo(
&self,
params: Parameters
) -> Result<Vec<u8>, Error<Error>>
pub async fn get_repo( &self, params: Parameters ) -> Result<Vec<u8>, Error<Error>>
Gets the repo state.
sourcepub async fn list_blobs(
&self,
params: Parameters
) -> Result<Output, Error<Error>>
pub async fn list_blobs( &self, params: Parameters ) -> Result<Output, Error<Error>>
List blob cids for some range of commits
sourcepub async fn list_repos(
&self,
params: Parameters
) -> Result<Output, Error<Error>>
pub async fn list_repos( &self, params: Parameters ) -> Result<Output, Error<Error>>
List dids and root cids of hosted repos
Auto Trait Implementations§
impl<T> RefUnwindSafe for Service<T>where T: RefUnwindSafe,
impl<T> Send for Service<T>
impl<T> Sync for Service<T>
impl<T> Unpin for Service<T>
impl<T> UnwindSafe for Service<T>where T: RefUnwindSafe,
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