pub enum GlassesPlacementError {
UnknownRoute(Symbol),
InvalidPlacement(PlacementError),
}Expand description
Error returned while resolving a glasses route placement.
Variants§
UnknownRoute(Symbol)
The route token is not part of the glasses route contract.
InvalidPlacement(PlacementError)
The resulting device placement violated a locality invariant.
Trait Implementations§
Source§impl Clone for GlassesPlacementError
impl Clone for GlassesPlacementError
Source§fn clone(&self) -> GlassesPlacementError
fn clone(&self) -> GlassesPlacementError
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 moreSource§impl Debug for GlassesPlacementError
impl Debug for GlassesPlacementError
Source§impl Display for GlassesPlacementError
impl Display for GlassesPlacementError
impl Eq for GlassesPlacementError
Source§impl Error for GlassesPlacementError
impl Error for GlassesPlacementError
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 From<PlacementError> for GlassesPlacementError
impl From<PlacementError> for GlassesPlacementError
Source§fn from(error: PlacementError) -> Self
fn from(error: PlacementError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GlassesPlacementError
impl PartialEq for GlassesPlacementError
impl StructuralPartialEq for GlassesPlacementError
Auto Trait Implementations§
impl Freeze for GlassesPlacementError
impl RefUnwindSafe for GlassesPlacementError
impl Send for GlassesPlacementError
impl Sync for GlassesPlacementError
impl Unpin for GlassesPlacementError
impl UnsafeUnpin for GlassesPlacementError
impl UnwindSafe for GlassesPlacementError
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