#[non_exhaustive]pub enum ContextAttachmentError {
DuplicateAttachment,
RoleOccupied(ContextAttachmentRole),
MissingPlatform,
ContextDropping,
}Expand description
Failure to register an attachment with a Context.
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.
DuplicateAttachment
An attachment with the same marker type is already active.
RoleOccupied(ContextAttachmentRole)
The exclusive platform or renderer role is already occupied.
MissingPlatform
A renderer cannot attach until a platform runtime is registered.
ContextDropping
Context teardown has already started.
Trait Implementations§
Source§impl Clone for ContextAttachmentError
impl Clone for ContextAttachmentError
Source§fn clone(&self) -> ContextAttachmentError
fn clone(&self) -> ContextAttachmentError
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 Copy for ContextAttachmentError
Source§impl Debug for ContextAttachmentError
impl Debug for ContextAttachmentError
Source§impl Display for ContextAttachmentError
impl Display for ContextAttachmentError
impl Eq for ContextAttachmentError
Source§impl Error for ContextAttachmentError
impl Error for ContextAttachmentError
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 ContextAttachmentError
impl PartialEq for ContextAttachmentError
impl StructuralPartialEq for ContextAttachmentError
Auto Trait Implementations§
impl Freeze for ContextAttachmentError
impl RefUnwindSafe for ContextAttachmentError
impl Send for ContextAttachmentError
impl Sync for ContextAttachmentError
impl Unpin for ContextAttachmentError
impl UnsafeUnpin for ContextAttachmentError
impl UnwindSafe for ContextAttachmentError
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