pub enum ReadModifyWriteError<E> {
Read(ScdcError<E>),
Write(ScdcError<E>),
}Expand description
The error of a read-modify-write of one register, saying which of its two transfers failed.
Returned by Scdc::update_tmds_config.
Deliberately exhaustive: a read-modify-write is a read and a write, never a third transfer, so a caller can map both variants without a wildcard arm that would have no error to carry.
Variants§
Read(ScdcError<E>)
The read failed; nothing was written.
Write(ScdcError<E>)
The read succeeded and the write failed; whether the sink took the write is unknown.
Trait Implementations§
Source§impl<E> Clone for ReadModifyWriteError<E>where
E: Clone,
impl<E> Clone for ReadModifyWriteError<E>where
E: Clone,
Source§fn clone(&self) -> ReadModifyWriteError<E>
fn clone(&self) -> ReadModifyWriteError<E>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<E> Copy for ReadModifyWriteError<E>where
E: Copy,
Source§impl<E> Debug for ReadModifyWriteError<E>where
E: Debug,
impl<E> Debug for ReadModifyWriteError<E>where
E: Debug,
Source§impl<E> Display for ReadModifyWriteError<E>where
E: Display,
impl<E> Display for ReadModifyWriteError<E>where
E: Display,
impl<E> Eq for ReadModifyWriteError<E>where
E: Eq,
Source§impl<E> Error for ReadModifyWriteError<E>where
E: Error + 'static,
impl<E> Error for ReadModifyWriteError<E>where
E: Error + 'static,
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()
Source§impl<E> PartialEq for ReadModifyWriteError<E>where
E: PartialEq,
impl<E> PartialEq for ReadModifyWriteError<E>where
E: PartialEq,
impl<E> StructuralPartialEq for ReadModifyWriteError<E>where
E: PartialEq,
Auto Trait Implementations§
impl<E> Forget for ReadModifyWriteError<E>
impl<E> Freeze for ReadModifyWriteError<E>
impl<E> Move for ReadModifyWriteError<E>
impl<E> RefUnwindSafe for ReadModifyWriteError<E>where
ScdcError<E>: RefUnwindSafe,
impl<E> Send for ReadModifyWriteError<E>
impl<E> Sync for ReadModifyWriteError<E>
impl<E> Unpin for ReadModifyWriteError<E>
impl<E> UnsafeUnpin for ReadModifyWriteError<E>where
ScdcError<E>: UnsafeUnpin,
impl<E> UnwindSafe for ReadModifyWriteError<E>where
ScdcError<E>: UnwindSafe,
Blanket Implementations§
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