#[non_exhaustive]pub enum HoldOutcome {
Held,
Blocked(BlockEntry),
}Expand description
The result of ContentIndex::add_hold.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Held
The hold is recorded.
Blocked(BlockEntry)
The object is on the blocklist: nothing was written, and the upload must be rejected.
Trait Implementations§
Source§impl Clone for HoldOutcome
impl Clone for HoldOutcome
Source§impl Debug for HoldOutcome
impl Debug for HoldOutcome
impl Eq for HoldOutcome
Source§impl PartialEq for HoldOutcome
impl PartialEq for HoldOutcome
impl StructuralPartialEq for HoldOutcome
Auto Trait Implementations§
impl Freeze for HoldOutcome
impl RefUnwindSafe for HoldOutcome
impl Send for HoldOutcome
impl Sync for HoldOutcome
impl Unpin for HoldOutcome
impl UnsafeUnpin for HoldOutcome
impl UnwindSafe for HoldOutcome
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