Enum semaphore::TryAccessError [] [src]

pub enum TryAccessError {
    Shutdown,
    NoCapacity,
}

Error indicating a failure to acquire access to the resource behind the semaphore.

Returned from Semaphore::try_access.

Variants

This semaphore has shut down and will no longer grant access to the underlying resource.

This semaphore has no more capacity to grant further access. Other access needs to be released before this semaphore can grant more.

Trait Implementations

impl Copy for TryAccessError
[src]

impl Clone for TryAccessError
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for TryAccessError
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for TryAccessError
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.