pub enum SourceStatus {
Active,
Paused,
Missing,
PermissionDenied,
Removed,
}Expand description
sources.status (external design §11.2).
Variants§
Implementations§
Source§impl SourceStatus
impl SourceStatus
Source§impl SourceStatus
impl SourceStatus
Sourcepub fn is_searchable(self) -> bool
pub fn is_searchable(self) -> bool
Whether a source in this state contributes search candidates (RFC-060 §5, §11 criterion 6).
Mirrors orbok_fs::source_lifecycle::SourceState::is_searchable
for the states the catalog can actually hold: that vocabulary is
RFC-037’s wider one (it adds Preparing and NeedsUpdate), while
sources.status’s CHECK admits only the five values above – so a
row can never carry the two extra searchable states, and Active
is the whole searchable set here.
Trait Implementations§
Source§impl Clone for SourceStatus
impl Clone for SourceStatus
impl Copy for SourceStatus
Source§impl Debug for SourceStatus
impl Debug for SourceStatus
Source§impl<'de> Deserialize<'de> for SourceStatus
impl<'de> Deserialize<'de> for SourceStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SourceStatus
Source§impl Hash for SourceStatus
impl Hash for SourceStatus
Source§impl PartialEq for SourceStatus
impl PartialEq for SourceStatus
Source§impl Serialize for SourceStatus
impl Serialize for SourceStatus
impl StructuralPartialEq for SourceStatus
Auto Trait Implementations§
impl Freeze for SourceStatus
impl RefUnwindSafe for SourceStatus
impl Send for SourceStatus
impl Sync for SourceStatus
impl Unpin for SourceStatus
impl UnsafeUnpin for SourceStatus
impl UnwindSafe for SourceStatus
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