#[non_exhaustive]pub enum WindowStringIdError {
HeldByAnotherWindow {
string_id: String,
holder: TeksiloWindowId,
},
NoSuchWindow(TeksiloWindowId),
Unsupported,
}Expand description
Why EventContext::set_window_string_id
left a window’s string id as it was.
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.
HeldByAnotherWindow
Another open window already has this string id. Two windows with
one id would leave find_window
able to name only one of them, and their saved geometry would be
one row that both overwrite, so the rename is refused. Close the
other window, or rename it first.
Fields
§
holder: TeksiloWindowIdThe open window that has it.
NoSuchWindow(TeksiloWindowId)
No open window has this id: it was never opened, or it has closed.
Unsupported
The window operations in use cannot rename a window: a standalone
tree with no application behind it, or a custom
WindowOps that does not implement it.
Trait Implementations§
Source§impl Clone for WindowStringIdError
impl Clone for WindowStringIdError
Source§impl Debug for WindowStringIdError
impl Debug for WindowStringIdError
Source§impl Display for WindowStringIdError
impl Display for WindowStringIdError
impl Eq for WindowStringIdError
Source§impl Error for WindowStringIdError
impl Error for WindowStringIdError
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 WindowStringIdError
impl PartialEq for WindowStringIdError
impl StructuralPartialEq for WindowStringIdError
Auto Trait Implementations§
impl Forget for WindowStringIdError
impl Freeze for WindowStringIdError
impl RefUnwindSafe for WindowStringIdError
impl Send for WindowStringIdError
impl Sync for WindowStringIdError
impl Unpin for WindowStringIdError
impl UnsafeUnpin for WindowStringIdError
impl UnwindSafe for WindowStringIdError
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