pub struct PackageService {
pub container: Option<Arc<DIContainer>>,
}Fields§
§container: Option<Arc<DIContainer>>Implementations§
Source§impl PackageService
impl PackageService
pub fn new() -> Self
pub async fn find_summary( &self, pkg_name: &str, release_build_only: bool, ) -> Result<Vec<PackageSummary>>
Trait Implementations§
Source§impl Clone for PackageService
impl Clone for PackageService
Source§fn clone(&self) -> PackageService
fn clone(&self) -> PackageService
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 moreSource§impl Debug for PackageService
impl Debug for PackageService
Source§impl Default for PackageService
impl Default for PackageService
Source§impl DependencyInjectTrait for PackageService
impl DependencyInjectTrait for PackageService
fn inject(&mut self, container: Arc<DIContainer>)
Source§impl ItemOperationAsyncTrait for PackageService
impl ItemOperationAsyncTrait for PackageService
type Item_ = Package
type ItemInstance_ = Package
type Condition_ = String
fn create<'life0, 'async_trait>(
&'life0 self,
_obj: Self::Item_,
) -> Pin<Box<dyn Future<Output = Result<Self::ItemInstance_>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update<'life0, 'life1, 'async_trait>(
&'life0 self,
_obj: &'life1 Self::Item_,
) -> Pin<Box<dyn Future<Output = Result<Self::ItemInstance_>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn find<'life0, 'life1, 'async_trait>(
&'life0 self,
pkg_name: &'life1 Self::Condition_,
) -> Pin<Box<dyn Future<Output = Result<Vec<Self::ItemInstance_>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl ItemOperationTrait for PackageService
impl ItemOperationTrait for PackageService
type Item = Package
type ItemInstance = Package
type Condition = String
fn delete(&self, _name: &str) -> Result<()>
fn list(&self) -> Result<Vec<Self::ItemInstance>>
fn get(&self, name: &str) -> Result<Self::ItemInstance>
fn has(&self, name: &str) -> Result<bool>
Source§impl ItemSearchTrait for PackageService
impl ItemSearchTrait for PackageService
impl Send for PackageService
impl ServiceTrait for PackageService
impl Sync for PackageService
Auto Trait Implementations§
impl Freeze for PackageService
impl !RefUnwindSafe for PackageService
impl Unpin for PackageService
impl UnsafeUnpin for PackageService
impl !UnwindSafe for PackageService
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