pub enum WriteError {
Io {
source: Error,
context: &'static str,
},
Dataset {
source: Error,
},
UnsupportedTransferSyntax {
uid: String,
},
}Expand description
An error occurring while writing a DICOM data set or file.
Variants§
Trait Implementations§
Source§impl Debug for WriteError
impl Debug for WriteError
Source§impl Display for WriteError
impl Display for WriteError
Source§impl Error for WriteError
impl Error for WriteError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !Freeze for WriteError
impl !RefUnwindSafe for WriteError
impl !UnwindSafe for WriteError
impl Forget for WriteError
impl Move for WriteError
impl Send for WriteErrorwhere
Repr: Send,
&'static str: Send,
Atomic<u32>: Send,
RawVecInner: Send,
Frame: Send,
impl FnOnce() -> Capture + Send + Sync + UnwindSafe: Send,
SmallVec<[String; 2]>: Send,
SmallVec<[Tag; 2]>: Send,
SmallVec<[u8; 2]>: Send,
SmallVec<[i16; 2]>: Send,
SmallVec<[u16; 2]>: Send,
SmallVec<[i32; 2]>: Send,
SmallVec<[u32; 2]>: Send,
SmallVec<[i64; 2]>: Send,
SmallVec<[u64; 2]>: Send,
SmallVec<[f32; 2]>: Send,
SmallVec<[f64; 2]>: Send,
SmallVec<[DicomDate; 2]>: Send,
SmallVec<[DicomDateTime; 2]>: Send,
SmallVec<[DicomTime; 2]>: Send,
String: Send,
impl Sync for WriteErrorwhere
Repr: Sync,
LazyLock<Capture, impl FnOnce() -> Capture + Send + Sync + UnwindSafe>: Sync,
SmallVecData<[String; 2]>: Sync,
String: Sync,
RawVecInner: Sync,
SmallVecData<[Tag; 2]>: Sync,
Tag: Sync,
SmallVecData<[u8; 2]>: Sync,
u8: Sync,
SmallVecData<[i16; 2]>: Sync,
i16: Sync,
SmallVecData<[u16; 2]>: Sync,
u16: Sync,
SmallVecData<[i32; 2]>: Sync,
i32: Sync,
SmallVecData<[u32; 2]>: Sync,
u32: Sync,
SmallVecData<[i64; 2]>: Sync,
i64: Sync,
SmallVecData<[u64; 2]>: Sync,
u64: Sync,
SmallVecData<[f32; 2]>: Sync,
f32: Sync,
SmallVecData<[f64; 2]>: Sync,
f64: Sync,
SmallVecData<[DicomDate; 2]>: Sync,
DicomDate: Sync,
SmallVecData<[DicomDateTime; 2]>: Sync,
DicomDateTime: Sync,
SmallVecData<[DicomTime; 2]>: Sync,
DicomTime: Sync,
impl Unpin for WriteErrorwhere
*const () is !null: Unpin,
&'static SimpleMessage: Unpin,
*const Custom is !null: Unpin,
&'static str: Unpin,
Align4<u32>: Unpin,
*const u8 is !null: Unpin,
*mut _Unwind_Context: Unpin,
*mut c_void: Unpin,
impl FnOnce() -> Capture + Send + Sync + UnwindSafe: Unpin,
*const String is !null: Unpin,
String: Unpin,
*const Tag is !null: Unpin,
Tag: Unpin,
u8: Unpin,
*const i16 is !null: Unpin,
i16: Unpin,
*const u16 is !null: Unpin,
u16: Unpin,
*const i32 is !null: Unpin,
i32: Unpin,
*const u32 is !null: Unpin,
u32: Unpin,
*const i64 is !null: Unpin,
i64: Unpin,
*const u64 is !null: Unpin,
u64: Unpin,
*const f32 is !null: Unpin,
f32: Unpin,
*const f64 is !null: Unpin,
f64: Unpin,
*const DicomDate is !null: Unpin,
DicomDate: Unpin,
*const DicomDateTime is !null: Unpin,
DicomDateTime: Unpin,
*const DicomTime is !null: Unpin,
DicomTime: Unpin,
impl UnsafeUnpin for WriteErrorwhere
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
&'static str: UnsafeUnpin,
Align4<u32>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<BacktraceFrame>: UnsafeUnpin,
impl FnOnce() -> Capture + Send + Sync + UnwindSafe: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const String is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const Tag is !null: UnsafeUnpin,
PhantomData<Tag>: UnsafeUnpin,
*const i16 is !null: UnsafeUnpin,
PhantomData<i16>: UnsafeUnpin,
*const u16 is !null: UnsafeUnpin,
PhantomData<u16>: UnsafeUnpin,
*const i32 is !null: UnsafeUnpin,
PhantomData<i32>: UnsafeUnpin,
*const u32 is !null: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
*const i64 is !null: UnsafeUnpin,
PhantomData<i64>: UnsafeUnpin,
*const u64 is !null: UnsafeUnpin,
PhantomData<u64>: UnsafeUnpin,
*const f32 is !null: UnsafeUnpin,
PhantomData<f32>: UnsafeUnpin,
*const f64 is !null: UnsafeUnpin,
PhantomData<f64>: UnsafeUnpin,
*const DicomDate is !null: UnsafeUnpin,
PhantomData<DicomDate>: UnsafeUnpin,
*const DicomDateTime is !null: UnsafeUnpin,
PhantomData<DicomDateTime>: UnsafeUnpin,
*const DicomTime is !null: UnsafeUnpin,
PhantomData<DicomTime>: UnsafeUnpin,
String: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more