pub enum AuthorityError {
NotDelegated,
NotAvailable,
NotHolder,
NotInScope,
ResourceNotPresent,
}Expand description
Errors raised by entity- and resource-authority operations.
Resource* variants are raised by the Replicated Resources auth API
(e.g. server.resource_take_authority::<R>()) and are semantically
distinct from the entity variants — using NotInScope for “the
resource isn’t currently inserted” would be a misuse.
Variants§
NotDelegated
Entity is not configured for delegation.
NotAvailable
Authority is not currently Available (e.g. another holder).
NotHolder
Caller does not currently hold authority.
NotInScope
Entity is not in the user’s scope.
ResourceNotPresent
(Resource API) The resource of the requested type R is not
currently inserted on this server/world. Distinct from
NotInScope (which is an entity-scope concept). Returned by
server.resource_take_authority::<R>(),
server.resource_release_authority::<R>(), and the client
request_resource_authority / release_resource_authority
commands when R is missing from the registry.
Trait Implementations§
Source§impl Clone for AuthorityError
impl Clone for AuthorityError
Source§fn clone(&self) -> AuthorityError
fn clone(&self) -> AuthorityError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AuthorityError
impl Debug for AuthorityError
Source§impl PartialEq for AuthorityError
impl PartialEq for AuthorityError
Source§fn eq(&self, other: &AuthorityError) -> bool
fn eq(&self, other: &AuthorityError) -> bool
self and other values to be equal, and is used by ==.