pub enum PublishOutcome {
Published(CacheEntry),
Existing(CacheEntry),
}Expand description
Result of publishing a verified staged file.
Variants§
Published(CacheEntry)
This process published the entry.
Existing(CacheEntry)
Another process had already published an equivalent valid entry.
Implementations§
Source§impl PublishOutcome
impl PublishOutcome
Sourcepub const fn entry(&self) -> &CacheEntry
pub const fn entry(&self) -> &CacheEntry
Borrows the published or concurrently existing cache entry.
Sourcepub fn into_entry(self) -> CacheEntry
pub fn into_entry(self) -> CacheEntry
Consumes the outcome and returns its cache entry.
Sourcepub const fn is_published(&self) -> bool
pub const fn is_published(&self) -> bool
Returns whether this process published the entry.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PublishOutcome
impl RefUnwindSafe for PublishOutcome
impl Send for PublishOutcome
impl Sync for PublishOutcome
impl Unpin for PublishOutcome
impl UnsafeUnpin for PublishOutcome
impl UnwindSafe for PublishOutcome
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