pub struct RustRepo {
pub name: String,
pub in_backend: Option<StorageEndpointInstance>,
pub out_backend: StorageEndpointInstance,
}Expand description
Minimal RustRepo example
Fields§
§name: String§in_backend: Option<StorageEndpointInstance>§out_backend: StorageEndpointInstanceTrait Implementations§
Source§impl RepositoryBackend for RustRepo
impl RepositoryBackend for RustRepo
fn name(&self) -> &str
fn format(&self) -> ArtifactFormat
fn is_writable(&self) -> bool
fn fetch(&self, _id: &ArtifactId) -> Result<Option<Vec<u8>>>
fn put(&self, _id: &ArtifactId, _data: &[u8]) -> Result<()>
fn as_any(&self) -> &dyn Any
fn handle_http2_request( &self, suburl: &str, body: &[u8], ) -> Result<(u16, Vec<(String, String)>, Vec<u8>)>
fn fetch_many_with_upstreams( &self, upstreams: &[Arc<dyn RepositoryBackend>], ids: &[ArtifactId], ) -> Result<HashMap<ArtifactId, Vec<u8>>>
Auto Trait Implementations§
impl Freeze for RustRepo
impl RefUnwindSafe for RustRepo
impl Send for RustRepo
impl Sync for RustRepo
impl Unpin for RustRepo
impl UnwindSafe for RustRepo
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