pub enum Fallible<T: ParentDevice> {
Valid(Arc<T>),
Invalid(Arc<String>),
}
Variants§
Implementations§
Source§impl<T: ParentDevice> Fallible<T>
impl<T: ParentDevice> Fallible<T>
pub fn get(self) -> Result<Arc<T>, InvalidResourceError>
Trait Implementations§
Source§impl<T: ParentDevice> Clone for Fallible<T>
impl<T: ParentDevice> Clone for Fallible<T>
Source§impl<T: ParentDevice> ResourceType for Fallible<T>
impl<T: ParentDevice> ResourceType for Fallible<T>
Auto Trait Implementations§
impl<T> Freeze for Fallible<T>
impl<T> RefUnwindSafe for Fallible<T>where
T: RefUnwindSafe,
impl<T> Send for Fallible<T>
impl<T> Sync for Fallible<T>
impl<T> Unpin for Fallible<T>
impl<T> UnwindSafe for Fallible<T>where
T: RefUnwindSafe,
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