pub enum CupRequest {
Write {
url: PackageUrl,
cup: CupData,
responder: CupWriteResponder,
},
GetInfo {
url: PackageUrl,
responder: CupGetInfoResponder,
},
}
Expand description
This protocol gives access to persisted CUP data for eager packages in pkg-resolver.
Variants§
Write
Resolve the eager package given by the pinned package URL, and write the CUP data to storage.
GetInfo
Returns the eager package version and channel of the given package URL.
Implementations§
Source§impl CupRequest
impl CupRequest
pub fn into_write(self) -> Option<(PackageUrl, CupData, CupWriteResponder)>
pub fn into_get_info(self) -> Option<(PackageUrl, CupGetInfoResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CupRequest
impl !RefUnwindSafe for CupRequest
impl Send for CupRequest
impl Sync for CupRequest
impl Unpin for CupRequest
impl !UnwindSafe for CupRequest
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