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>
source§impl<T: ParentDevice + StorageItem> StorageItem for Fallible<T>
impl<T: ParentDevice + StorageItem> StorageItem for Fallible<T>
type Marker = <T as StorageItem>::Marker
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