pub enum PublishError {
Refused(RefusalReason),
Io(Error),
}Expand description
Why admit_and_publish did not produce an admitted, published artifact:
either the candidate itself was refused, or admission’s own atomic write
failed. The two are kept apart because only the first is a
RefusalReason a caller might match on by token; the second is an
ordinary filesystem failure.
Variants§
Refused(RefusalReason)
The candidate was refused; nothing was written.
Io(Error)
The candidate was admitted but the atomic write itself failed. Whatever artifact already existed is untouched – the write only ever replaces the target once its temp file is fully written.
Trait Implementations§
Source§impl Debug for PublishError
impl Debug for PublishError
Source§impl From<RefusalReason> for PublishError
impl From<RefusalReason> for PublishError
Source§fn from(reason: RefusalReason) -> Self
fn from(reason: RefusalReason) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PublishError
impl !UnwindSafe for PublishError
impl Freeze for PublishError
impl Send for PublishError
impl Sync for PublishError
impl Unpin for PublishError
impl UnsafeUnpin for PublishError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more