Enum tectonic::io::OpenResult [−][src]
pub enum OpenResult<T> { Ok(T), NotAvailable, Err(Error), }
Variants
Ok(T)
NotAvailable
Err(Error)
Methods
impl<T> OpenResult<T>
[src]
impl<T> OpenResult<T>
pub fn unwrap(self) -> T
[src]
pub fn unwrap(self) -> T
pub fn is_not_available(&self) -> bool
[src]
pub fn is_not_available(&self) -> bool
Returns true if this result is of the NotAvailable variant.
pub fn must_exist(self) -> Result<T>
[src]
pub fn must_exist(self) -> Result<T>
Convert this object into a plain Result, erroring if the item was not available.
Trait Implementations
impl<T: Debug> Debug for OpenResult<T>
[src]
impl<T: Debug> Debug for OpenResult<T>
Auto Trait Implementations
impl<T> Send for OpenResult<T> where
T: Send,
impl<T> Send for OpenResult<T> where
T: Send,
impl<T> !Sync for OpenResult<T>
impl<T> !Sync for OpenResult<T>