Trait buildsrs_database::WriteHandle
source · pub trait WriteHandle: ReadHandle + Send + Sync {
// Required methods
fn crate_add<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<(), BoxError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn crate_version_add<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
name: &'life1 str,
version: &'life2 str,
url: &'life3 str,
checksum: &'life4 [u8],
yanked: bool
) -> Pin<Box<dyn Future<Output = Result<(), BoxError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait;
fn job_request<'life0, 'async_trait>(
&'life0 self,
builder: Uuid
) -> Pin<Box<dyn Future<Output = Result<Uuid, BoxError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn commit<'async_trait>(
self: Box<Self>
) -> Pin<Box<dyn Future<Output = Result<(), BoxError>> + Send + 'async_trait>>
where Self: 'async_trait;
fn builder_add<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
uuid: Uuid,
key: &'life1 PublicKey,
comment: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<(), BoxError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn builder_set_comment<'life0, 'life1, 'async_trait>(
&'life0 self,
builder: Uuid,
comment: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<(), BoxError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn builder_set_enabled<'life0, 'async_trait>(
&'life0 self,
builder: Uuid,
enabled: bool
) -> Pin<Box<dyn Future<Output = Result<(), BoxError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn builder_triple_add<'life0, 'life1, 'async_trait>(
&'life0 self,
builder: Uuid,
triple: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<(), BoxError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn builder_triple_remove<'life0, 'life1, 'async_trait>(
&'life0 self,
builder: Uuid,
triple: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<(), BoxError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
Handle used for writing to the metadata service.
This handle also implements the ReadHandle
trait, and can thus be used to read written
data. However, the changes made using calls in this trait are not visible from other handles
unless they are committed, using the commit()
call.