Trait persy::ToSegmentId

source ·
pub trait ToSegmentId {
    // Required methods
    fn to_segment_id(self, address: &Address) -> Result<SegmentId, SegmentError>;
    fn to_segment_id_tx(
        self,
        persy: &PersyImpl,
        tx: &TransactionImpl
    ) -> Result<(SegmentId, bool), SegmentError>;
    fn to_segment_id_snapshot(
        self,
        snapshots: &Snapshots,
        snapshot: &SnapshotRef
    ) -> Result<SegmentId, SegmentError>;
}

Required Methods§

source

fn to_segment_id(self, address: &Address) -> Result<SegmentId, SegmentError>

source

fn to_segment_id_tx( self, persy: &PersyImpl, tx: &TransactionImpl ) -> Result<(SegmentId, bool), SegmentError>

source

fn to_segment_id_snapshot( self, snapshots: &Snapshots, snapshot: &SnapshotRef ) -> Result<SegmentId, SegmentError>

Implementors§