#[non_exhaustive]pub enum WriteRefused {
Unsupported,
ReadOnly,
InvalidRange,
Busy,
}Expand description
Why a TextInputEditor refused a write.
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.
Unsupported
The document takes no writes from the input system (the default).
ReadOnly
The field is read-only.
InvalidRange
The range is outside the document, or ends before it starts.
Busy
The widget is in the middle of its own work, or holds typing not
inserted yet (TextInputDocument::flush_pending_input).
Trait Implementations§
Source§impl Clone for WriteRefused
impl Clone for WriteRefused
impl Copy for WriteRefused
Source§impl Debug for WriteRefused
impl Debug for WriteRefused
Source§impl Display for WriteRefused
impl Display for WriteRefused
impl Eq for WriteRefused
Source§impl Error for WriteRefused
impl Error for WriteRefused
1.30.0 · 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 PartialEq for WriteRefused
impl PartialEq for WriteRefused
impl StructuralPartialEq for WriteRefused
Auto Trait Implementations§
impl Freeze for WriteRefused
impl RefUnwindSafe for WriteRefused
impl Send for WriteRefused
impl Sync for WriteRefused
impl Unpin for WriteRefused
impl UnsafeUnpin for WriteRefused
impl UnwindSafe for WriteRefused
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