@@ -123,7 +123,7 @@ pub enum MessageKind {
123123}
124124
125125impl MessageKind {
126- pub ( crate ) const fn into ( self ) -> u8 {
126+ pub ( in crate :: pagecache ) const fn into ( self ) -> u8 {
127127 self as u8
128128 }
129129}
@@ -225,16 +225,16 @@ fn bump_atomic_lsn(atomic_lsn: &AtomicLsn, to: Lsn) {
225225
226226use std:: convert:: { TryFrom , TryInto } ;
227227
228- pub ( crate ) const fn lsn_to_arr ( number : Lsn ) -> [ u8 ; 8 ] {
228+ pub ( in crate :: pagecache ) const fn lsn_to_arr ( number : Lsn ) -> [ u8 ; 8 ] {
229229 number. to_le_bytes ( )
230230}
231231
232232#[ inline]
233- pub ( crate ) fn arr_to_lsn ( arr : & [ u8 ] ) -> Lsn {
233+ pub ( in crate :: pagecache ) fn arr_to_lsn ( arr : & [ u8 ] ) -> Lsn {
234234 Lsn :: from_le_bytes ( arr. try_into ( ) . unwrap ( ) )
235235}
236236
237- pub ( crate ) const fn u64_to_arr ( number : u64 ) -> [ u8 ; 8 ] {
237+ pub ( in crate :: pagecache ) const fn u64_to_arr ( number : u64 ) -> [ u8 ; 8 ] {
238238 number. to_le_bytes ( )
239239}
240240
@@ -249,7 +249,7 @@ pub(crate) const fn u32_to_arr(number: u32) -> [u8; 4] {
249249
250250#[ allow( clippy:: needless_pass_by_value) ]
251251#[ allow( clippy:: needless_return) ]
252- pub ( crate ) fn decompress ( in_buf : Vec < u8 > ) -> Vec < u8 > {
252+ pub ( in crate :: pagecache ) fn decompress ( in_buf : Vec < u8 > ) -> Vec < u8 > {
253253 #[ cfg( feature = "compression" ) ]
254254 {
255255 use zstd:: stream:: decode_all;
@@ -295,8 +295,8 @@ impl<'g> Deref for MetaView<'g> {
295295
296296#[ derive( Debug , Clone , Copy ) ]
297297pub struct PageView < ' g > {
298- pub ( crate ) read : Shared < ' g , Page > ,
299- pub ( crate ) entry : & ' g Atomic < Page > ,
298+ pub ( in crate :: pagecache ) read : Shared < ' g , Page > ,
299+ pub ( in crate :: pagecache ) entry : & ' g Atomic < Page > ,
300300}
301301
302302impl < ' g > Deref for PageView < ' g > {
@@ -327,7 +327,7 @@ impl quickcheck::Arbitrary for CacheInfo {
327327/// of which a page consists.
328328#[ derive( Clone , Debug ) ]
329329#[ cfg_attr( feature = "testing" , derive( PartialEq ) ) ]
330- pub ( crate ) enum Update {
330+ pub ( in crate :: pagecache ) enum Update {
331331 Link ( Link ) ,
332332 Node ( Node ) ,
333333 Free ,
@@ -410,7 +410,7 @@ pub struct Page {
410410}
411411
412412impl Page {
413- pub ( crate ) fn rss ( & self ) -> Option < u64 > {
413+ pub ( in crate :: pagecache ) fn rss ( & self ) -> Option < u64 > {
414414 match & self . update {
415415 Some ( Update :: Node ( ref node) ) => Some ( node. rss ( ) ) ,
416416 _ => None ,
@@ -1670,7 +1670,7 @@ impl PageCacheInner {
16701670 }
16711671
16721672 /// Retrieve the current persisted IDGEN value
1673- pub ( crate ) fn get_idgen < ' g > (
1673+ pub ( in crate :: pagecache ) fn get_idgen < ' g > (
16741674 & self ,
16751675 guard : & ' g Guard ,
16761676 ) -> ( PageView < ' g > , u64 ) {
0 commit comments