Function unimplementedSendFile [src]

For use when the Writer implementation can cannot offer a more efficient implementation than a basic read/write loop on the file.

Prototype

pub fn unimplementedSendFile(w: *Writer, file_reader: *File.Reader, limit: Limit) FileError!usize

Parameters

w: *Writerfile_reader: *File.Readerlimit: Limit

Possible Errors

EndOfStream

Reached the end of the file being read.

ReadFailed

Detailed diagnostics are found on the File.Reader struct.

Unimplemented

Indicates the caller should do its own file reading; the callee cannot offer a more efficient implementation.

WriteFailed

See the Writer implementation for detailed diagnostics.

Source

pub fn unimplementedSendFile(w: *Writer, file_reader: *File.Reader, limit: Limit) FileError!usize { _ = w; _ = file_reader; _ = limit; return error.Unimplemented; }