pub enum PreparedEvent {
Processed {
result: RumorProcessingResult,
contact: String,
sender: PublicKey,
is_mine: bool,
wrapper_event_id: String,
wrapper_event_id_bytes: [u8; 32],
wrapper_created_at: u64,
unwrap_ns: u64,
parse_ns: u64,
},
CommunityInvite {
invite: CommunityInvite,
inviter: String,
is_mine: bool,
wrapper_event_id_bytes: [u8; 32],
wrapper_created_at: u64,
},
CommunityInviteV2 {
bundle_json: String,
community_id: String,
inviter: String,
is_mine: bool,
wrapper_event_id_bytes: [u8; 32],
wrapper_created_at: u64,
},
DedupSkip {
wrapper_id_bytes: [u8; 32],
wrapper_created_at: u64,
},
ErrorSkip {
wrapper_id_bytes: [u8; 32],
wrapper_created_at: u64,
},
}Expand description
Result of Phase 1 (prepare_event) — everything needed for sequential commit.
Variants§
Processed
Fully processed DM rumor — ready for state commit.
Fields
§
result: RumorProcessingResultCommunityInvite
Community invite bundle (kind 3304) — parked for explicit user consent.
Fields
§
invite: CommunityInviteCommunityInviteV2
Concord v2 Direct Invite (inner kind 3313) — parked for explicit consent. Carries the raw bundle JSON (parked verbatim; the accept path re-parses it).
Fields
DedupSkip
Duplicate event — just persist wrapper for negentropy.
ErrorSkip
Error during unwrap/processing — persist wrapper for negentropy.
Auto Trait Implementations§
impl Freeze for PreparedEvent
impl RefUnwindSafe for PreparedEvent
impl Send for PreparedEvent
impl Sync for PreparedEvent
impl Unpin for PreparedEvent
impl UnsafeUnpin for PreparedEvent
impl UnwindSafe for PreparedEvent
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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