Enum glommio::ResourceType [−][src]
pub enum ResourceType<T> { Semaphore { requested: u64, available: u64, }, RwLock, Channel(T), File(String), Gate, }
Resource Type used for errors that WouldBlock
and includes extra
diagnostic data for richer error messages.
Variants
Semaphore resource that includes the requested and available shares
as debugging metadata for the Semaphore
type.
Show fields
Lock variant for reporting errors from the
RwLock
type.
Channel variant for reporting errors from
local_channel
and
shared_channel
channel types.
File(String)
File variant used for reporting errors for the Buffered
(BufferedFile
) and Direct
(DmaFile
) file I/O variants.
Gate variant used for reporting errors for the
Gate
type.
Trait Implementations
impl<T> Display for ResourceType<T>
[src]
impl<T> Display for ResourceType<T>
[src]Note this is a tricky impl in the sense that you will not get the information you expect from just using this display impl on a value. On the other hand the display impl for the entire error will give correct results..
Auto Trait Implementations
impl<T> RefUnwindSafe for ResourceType<T> where
T: RefUnwindSafe,
impl<T> RefUnwindSafe for ResourceType<T> where
T: RefUnwindSafe,
impl<T> Send for ResourceType<T> where
T: Send,
impl<T> Send for ResourceType<T> where
T: Send,
impl<T> Sync for ResourceType<T> where
T: Sync,
impl<T> Sync for ResourceType<T> where
T: Sync,
impl<T> Unpin for ResourceType<T> where
T: Unpin,
impl<T> Unpin for ResourceType<T> where
T: Unpin,
impl<T> UnwindSafe for ResourceType<T> where
T: UnwindSafe,
impl<T> UnwindSafe for ResourceType<T> where
T: UnwindSafe,