pub fn fsync<F: AsRawFd>(&mut self, file: &F, tok: T) -> Result<(), T> {
        if self.full() {
            Err(tok)
        } else {
            let iocb = Iocb {
                iocb: self.pack_iocb(aio::Iocmd::IO_CMD_FSYNC, file, 0),
                op: IoOp::Fsync(tok),
            };
            self.prep_iocb(iocb)
        }
    }
/// Queue up an fsync operation.
Queue up an fsync operation.
Queue up an fsync operation .
pub fn fsync<F: AsRawFd>(&mut self, file: &F, tok: T) -> Result<(), T> {
        if self.full() {
            Err(tok)
        } else {
            let iocb = Iocb {
                iocb: self.pack_iocb(aio::Iocmd::IO_CMD_FSYNC, file, 0),
                op: IoOp::Fsync(tok),
            };
            self.prep_iocb(iocb)
        }
    }
pub fn fsync < F : AsRawFd > ( & mut self , file : & F , tok : T ) -> Result < ( ) , T > { if self . full ( ) { Err ( tok ) } else { let iocb = Iocb { iocb : self . pack_iocb ( aio :: Iocmd :: IO_CMD_FSYNC , file , 0 ) , op : IoOp :: Fsync ( tok ) , } ; self . prep_iocb ( iocb ) } }
Queue up an fsync operation.
Queue up an fsync operation .
&mut self
file
&F
tok
T
&mut self
file
&F
tok
T