pub async fn from_existing(mut segment_controller: S) -> Result<Self> {
        let header = FileHeader::from_bytes(segment_controller.read_segment(0).await?)?;
        Ok(NaivePageController {
            header,
            header_is_dirty: false,
            segment_controller,
            current_page: None,
        })
    }
/// Creates a new controller for an existing file.
Creates a new controller for an existing file.
Creates a new controller for an existing file .
pub async fn from_existing(mut segment_controller: S) -> Result<Self> {
        let header = FileHeader::from_bytes(segment_controller.read_segment(0).await?)?;
        Ok(NaivePageController {
            header,
            header_is_dirty: false,
            segment_controller,
            current_page: None,
        })
    }
pub async fn from_existing ( mut segment_controller : S ) -> Result < Self > { let header = FileHeader :: from_bytes ( segment_controller . read_segment ( 0 ) . await ? ) ? ; Ok ( NaivePageController { header , header_is_dirty : false , segment_controller , current_page : None , } ) }
Creates a new controller for an existing file.
Creates a new controller for an existing file .
segment_controller
S
segment_controller
S