pub enum WriteError<FatalEncoderError: Error> {
FatalError(FatalWriteError<FatalEncoderError>),
Underflow,
BufferTooLong {
buffer_len: usize,
block_size: usize,
},
InvalidBuffer,
IOServerChannelFull,
}Expand description
An error writing the file.
Variants§
FatalError(FatalWriteError<FatalEncoderError>)
A fatal error occurred. The stream cannot continue.
Underflow
There are no more blocks left in the buffer because the server was too slow writing previous ones. Make sure there are enough write blocks available to the stream.
In theory this should not happen, but if it does, try writing again later.
If this is returned, then no data in the given buffer will be written to the file.
BufferTooLong
The given buffer is too long. The length of the buffer cannot exceed
block_size. The value of block_size can be retrieved using
WriteDiskStream::block_size().
If this is returned, then no data in the given buffer will be written to the file.
InvalidBuffer
The given buffer does not match the internal layout of the stream. Check that the number of channels in both are the same.
If this is returned, then no data in the given buffer will be written to the file.
IOServerChannelFull
The message channel to the IO server was full.
In theory this should not happen, but if it does, try writing again later.
If this is returned, then no data in the given buffer will be written to the file.