#[non_exhaustive]pub struct HolderOutcome {
pub newly_added: bool,
pub first_holder: bool,
pub record: HolderRecord,
pub blocked: Option<BlockEntry>,
}Expand description
The result of ContentIndex::add_holder.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.newly_added: boolThe holder row was not there before.
first_holder: boolThe object had no holder before this write.
record: HolderRecordWhat the holder row now says.
blocked: Option<BlockEntry>The object’s blocklist entry, if blocked: the relay then takes the object down in the holding repo (R-75). The row is recorded either way, so a takedown finds the holder.
Trait Implementations§
Source§impl Clone for HolderOutcome
impl Clone for HolderOutcome
Source§impl Debug for HolderOutcome
impl Debug for HolderOutcome
impl Eq for HolderOutcome
Source§impl PartialEq for HolderOutcome
impl PartialEq for HolderOutcome
impl StructuralPartialEq for HolderOutcome
Auto Trait Implementations§
impl Freeze for HolderOutcome
impl RefUnwindSafe for HolderOutcome
impl Send for HolderOutcome
impl Sync for HolderOutcome
impl Unpin for HolderOutcome
impl UnsafeUnpin for HolderOutcome
impl UnwindSafe for HolderOutcome
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