pub enum StreamError {
Show 14 variants
IoError,
EndOfStream,
WouldBlock,
Closed,
InvalidArgument,
Interrupted,
PermissionDenied,
DeviceError,
NotSupported,
NoSpace,
BrokenPipe,
SeekError,
FileSystemError(FileSystemError),
Other(String),
}
Expand description
Represents errors that can occur during stream I/O operations
Variants§
IoError
I/O error occurred
EndOfStream
End of stream reached (EOF for reads)
WouldBlock
Operation would block (for non-blocking streams)
Closed
Stream was closed or is invalid
InvalidArgument
Invalid arguments provided (e.g., null buffer, invalid offset)
Interrupted
Operation interrupted by signal
PermissionDenied
Permission denied for this operation
DeviceError
Device-specific error
NotSupported
Operation not supported by this stream type
NoSpace
No space left for write operations
BrokenPipe
Broken pipe/connection
SeekError
Seek operation failed
FileSystemError(FileSystemError)
FileSystemError
Other(String)
Generic error with custom message
Trait Implementations§
Source§impl Clone for StreamError
impl Clone for StreamError
Source§fn clone(&self) -> StreamError
fn clone(&self) -> StreamError
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StreamError
impl Debug for StreamError
Source§impl From<FileSystemError> for StreamError
impl From<FileSystemError> for StreamError
Source§fn from(fs_err: FileSystemError) -> Self
fn from(fs_err: FileSystemError) -> Self
Converts to this type from the input type.
Source§impl From<StreamError> for IpcError
impl From<StreamError> for IpcError
Source§fn from(stream_err: StreamError) -> Self
fn from(stream_err: StreamError) -> Self
Converts to this type from the input type.
Source§impl From<StreamError> for PipeError
impl From<StreamError> for PipeError
Source§fn from(stream_err: StreamError) -> Self
fn from(stream_err: StreamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StreamError
impl RefUnwindSafe for StreamError
impl Send for StreamError
impl Sync for StreamError
impl Unpin for StreamError
impl UnwindSafe for StreamError
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)