#[non_exhaustive]pub enum WriteError {
TooLarge {
cap: usize,
},
NotOwner,
Contract(Contract),
Detached,
}Expand description
A SignalWriter::set, SignalWriter::invalidate or
SignalWriter::touch that failed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TooLarge
The value is larger than the signal’s capacity.
NotOwner
This provider does not own the signal.
Contract(Contract)
A contract error, such as an unknown interaction.
Detached
The runtime behind the port is gone.
Trait Implementations§
Source§impl Clone for WriteError
impl Clone for WriteError
impl Copy for WriteError
Source§impl Debug for WriteError
impl Debug for WriteError
impl Eq for WriteError
Source§impl PartialEq for WriteError
impl PartialEq for WriteError
impl StructuralPartialEq for WriteError
Auto Trait Implementations§
impl Freeze for WriteError
impl RefUnwindSafe for WriteError
impl Send for WriteError
impl Sync for WriteError
impl Unpin for WriteError
impl UnsafeUnpin for WriteError
impl UnwindSafe for WriteError
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