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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)