pub struct CupSynchronousProxy { /* private fields */ }
Implementations§
Source§impl CupSynchronousProxy
impl CupSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<CupEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<CupEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn write(
&self,
url: &PackageUrl,
cup: &CupData,
___deadline: MonotonicInstant,
) -> Result<CupWriteResult, Error>
pub fn write( &self, url: &PackageUrl, cup: &CupData, ___deadline: MonotonicInstant, ) -> Result<CupWriteResult, Error>
Resolve the eager package given by the pinned package URL, and write the CUP data to storage.
Sourcepub fn get_info(
&self,
url: &PackageUrl,
___deadline: MonotonicInstant,
) -> Result<CupGetInfoResult, Error>
pub fn get_info( &self, url: &PackageUrl, ___deadline: MonotonicInstant, ) -> Result<CupGetInfoResult, Error>
Returns the eager package version and channel of the given package URL.
Trait Implementations§
Source§impl Debug for CupSynchronousProxy
impl Debug for CupSynchronousProxy
Source§impl SynchronousProxy for CupSynchronousProxy
impl SynchronousProxy for CupSynchronousProxy
Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for CupSynchronousProxy
impl RefUnwindSafe for CupSynchronousProxy
impl Send for CupSynchronousProxy
impl Sync for CupSynchronousProxy
impl Unpin for CupSynchronousProxy
impl UnwindSafe for CupSynchronousProxy
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