Skip to main content

SessionEventRef

Type Alias SessionEventRef 

Source
pub type SessionEventRef<'a> = SessionEvent<&'a RecoveredRecord, &'a ReceivedManifest>;
Expand description

A callback-scoped view; retaining it requires an explicit allocating to_owned call.

Aliased Type§

pub enum SessionEventRef<'a> {
    Manifest(&'a ReceivedManifest),
    VerifiedRecoveryPoint {
        identity: StreamIdentity,
        recovery_point: RecoveryPoint,
        recovery_record: &'a RecoveredRecord,
        keyframe: &'a RecoveredRecord,
    },
    ContinuousRecord {
        identity: StreamIdentity,
        record: &'a RecoveredRecord,
    },
    Gap {
        identity: StreamIdentity,
        gap: CopperListGap,
    },
    Object {
        identity: StreamIdentity,
        record: &'a RecoveredRecord,
    },
}

Variants§

§

Manifest(&'a ReceivedManifest)

§

VerifiedRecoveryPoint

Emitted only after the recovery point, manifest and keyframe agree by digest and id.

Fields

§recovery_point: RecoveryPoint
§recovery_record: &'a RecoveredRecord
§keyframe: &'a RecoveredRecord
§

ContinuousRecord

Fields

§record: &'a RecoveredRecord
§

Gap

Fields

§

Object

Fields

§record: &'a RecoveredRecord

Implementations§