pub struct RepositoryManagerSynchronousProxy { /* private fields */ }Implementations§
Source§impl RepositoryManagerSynchronousProxy
impl RepositoryManagerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<RepositoryManagerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<RepositoryManagerEvent, 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 add(
&self,
repo: &RepositoryConfig,
___deadline: MonotonicInstant,
) -> Result<RepositoryManagerAddResult, Error>
pub fn add( &self, repo: &RepositoryConfig, ___deadline: MonotonicInstant, ) -> Result<RepositoryManagerAddResult, Error>
Adds a repository. This will overwrite the repository if it already exists.
- request
repoa repository to add to the resolver.
- error a zx_status value indicating failure. One of the following:
ZX_ERR_ACCESS_DENIEDif editing repositories is permanently disabled.ZX_ERR_ALREADY_EXISTSif the repository already exists.ZX_ERR_INVALID_ARGSif the repository is malformed.
Sourcepub fn remove(
&self,
repo_url: &str,
___deadline: MonotonicInstant,
) -> Result<RepositoryManagerRemoveResult, Error>
pub fn remove( &self, repo_url: &str, ___deadline: MonotonicInstant, ) -> Result<RepositoryManagerRemoveResult, Error>
Removes a repository.
Removing a repository will prevent future packages from being cached from this repository, but in-flight downloads may not be interrupted.
- request
repo_urlthe URL of the repository we want to remove.
- error a zx_status value indicating failure. One of the following:
ZX_ERR_ACCESS_DENIEDif editing repositories is permanently disabled or therepo_urlmatches a static repository.ZX_ERR_INVALID_ARGSif therepo_urlis malformed.ZX_ERR_NOT_FOUNDif the repository does not exist.
Sourcepub fn add_mirror(
&self,
repo_url: &str,
mirror: &MirrorConfig,
___deadline: MonotonicInstant,
) -> Result<RepositoryManagerAddMirrorResult, Error>
pub fn add_mirror( &self, repo_url: &str, mirror: &MirrorConfig, ___deadline: MonotonicInstant, ) -> Result<RepositoryManagerAddMirrorResult, Error>
Adds a mirror to a repository. This will overwrite the mirror if it already exists.
- request
repo_urlthe URL of the repository to add the mirror to. - request
mirrorthe mirror config used to add the mirror.
- error a zx_status value indicating failure. One of the following:
ZX_ERR_ALREADY_EXISTSif the mirror for this repository already exists.ZX_ERR_INVALID_ARGSif therepo_urlor themirroris malformed.ZX_ERR_NOT_FOUNDif the repository does not exist.
Sourcepub fn remove_mirror(
&self,
repo_url: &str,
mirror_url: &str,
___deadline: MonotonicInstant,
) -> Result<RepositoryManagerRemoveMirrorResult, Error>
pub fn remove_mirror( &self, repo_url: &str, mirror_url: &str, ___deadline: MonotonicInstant, ) -> Result<RepositoryManagerRemoveMirrorResult, Error>
Removes a mirror from a repository.
Removing a mirror will prevent future packages from being cached from that mirror, but in-flight downloads may not be interrupted.
- request
repo_urlthe URL of the mirror’s repository. - request
mirror_urlthe URL of the mirror we want to remove.
- error a zx_status value indicating failure. One of the following:
ZX_ERR_INVALID_ARGSif therepo_urlor themirror_urlis malformed.ZX_ERR_NOT_FOUNDif the repository or mirror does not exist.
Trait Implementations§
Source§impl From<Channel> for RepositoryManagerSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for RepositoryManagerSynchronousProxy
Available on Fuchsia only.
Source§impl From<RepositoryManagerSynchronousProxy> for Handle
Available on Fuchsia only.
impl From<RepositoryManagerSynchronousProxy> for Handle
Available on Fuchsia only.
Source§fn from(value: RepositoryManagerSynchronousProxy) -> Self
fn from(value: RepositoryManagerSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for RepositoryManagerSynchronousProxy
Available on Fuchsia only.
impl FromClient for RepositoryManagerSynchronousProxy
Available on Fuchsia only.
Source§type Protocol = RepositoryManagerMarker
type Protocol = RepositoryManagerMarker
The protocol.
Source§fn from_client(value: ClientEnd<RepositoryManagerMarker>) -> Self
fn from_client(value: ClientEnd<RepositoryManagerMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for RepositoryManagerSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for RepositoryManagerSynchronousProxy
Available on Fuchsia only.
Source§type Proxy = RepositoryManagerProxy
type Proxy = RepositoryManagerProxy
The async proxy for the same protocol.
Source§type Protocol = RepositoryManagerMarker
type Protocol = RepositoryManagerMarker
The protocol which this
Proxy controls.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 RepositoryManagerSynchronousProxy
impl RefUnwindSafe for RepositoryManagerSynchronousProxy
impl Send for RepositoryManagerSynchronousProxy
impl Sync for RepositoryManagerSynchronousProxy
impl Unpin for RepositoryManagerSynchronousProxy
impl UnwindSafe for RepositoryManagerSynchronousProxy
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