pub enum EntityAuthStatus {
Available,
Requested,
Granted,
Releasing,
Denied,
}Expand description
Authority lifecycle state for a delegated entity as observed by one endpoint.
Variants§
Available
No authority over this entity has been granted to any host.
Requested
This host has requested authority but the grant has not arrived yet.
Granted
This host has been granted authority over the entity.
Releasing
This host is releasing authority; the release is in flight.
Denied
This host was denied authority because another host claimed it first.
Implementations§
Source§impl EntityAuthStatus
impl EntityAuthStatus
Sourcepub fn is_available(&self) -> bool
pub fn is_available(&self) -> bool
Returns true if no host currently holds authority over this entity.
Sourcepub fn is_requested(&self) -> bool
pub fn is_requested(&self) -> bool
Returns true if this host has requested but not yet been granted authority.
Sourcepub fn is_granted(&self) -> bool
pub fn is_granted(&self) -> bool
Returns true if this host currently holds authority over the entity.
Sourcepub fn is_releasing(&self) -> bool
pub fn is_releasing(&self) -> bool
Returns true if this host is in the process of releasing authority.
Trait Implementations§
Source§impl Clone for EntityAuthStatus
impl Clone for EntityAuthStatus
Source§fn clone(&self) -> EntityAuthStatus
fn clone(&self) -> EntityAuthStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EntityAuthStatus
impl Debug for EntityAuthStatus
Source§impl Hash for EntityAuthStatus
impl Hash for EntityAuthStatus
Source§impl PartialEq for EntityAuthStatus
impl PartialEq for EntityAuthStatus
Source§fn eq(&self, other: &EntityAuthStatus) -> bool
fn eq(&self, other: &EntityAuthStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serde for EntityAuthStatus
impl Serde for EntityAuthStatus
impl Copy for EntityAuthStatus
impl Eq for EntityAuthStatus
impl StructuralPartialEq for EntityAuthStatus
Auto Trait Implementations§
impl Freeze for EntityAuthStatus
impl RefUnwindSafe for EntityAuthStatus
impl Send for EntityAuthStatus
impl Sync for EntityAuthStatus
impl Unpin for EntityAuthStatus
impl UnsafeUnpin for EntityAuthStatus
impl UnwindSafe for EntityAuthStatus
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