pub struct InMemoryRegistry { /* private fields */ }Expand description
An in-memory registry that can have packages published to it.
InMemoryRegistry itself is not a PackageSource, but one can be created
by calling source().
Implementations§
Source§impl InMemoryRegistry
impl InMemoryRegistry
pub fn new() -> Self
Sourcepub fn publish(&self, builder: PackageBuilder)
pub fn publish(&self, builder: PackageBuilder)
Publish a new package to the registry.
Sourcepub fn source(&self) -> PackageSource
pub fn source(&self) -> PackageSource
Returns a handle to an object that can be used as a PackageSource.
Auto Trait Implementations§
impl Freeze for InMemoryRegistry
impl RefUnwindSafe for InMemoryRegistry
impl Send for InMemoryRegistry
impl Sync for InMemoryRegistry
impl Unpin for InMemoryRegistry
impl UnsafeUnpin for InMemoryRegistry
impl UnwindSafe for InMemoryRegistry
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