Struct naia_shared::HostAuthHandler
source · pub struct HostAuthHandler<E: Copy + Eq + Hash> { /* private fields */ }
Implementations§
source§impl<E: Copy + Eq + Hash> HostAuthHandler<E>
impl<E: Copy + Eq + Hash> HostAuthHandler<E>
pub fn new() -> Self
pub fn register_entity( &mut self, host_type: HostType, entity: &E ) -> EntityAuthAccessor
pub fn deregister_entity(&mut self, entity: &E)
pub fn get_accessor(&self, entity: &E) -> EntityAuthAccessor
pub fn auth_status(&self, entity: &E) -> Option<HostEntityAuthStatus>
pub fn set_auth_status(&self, entity: &E, auth_status: EntityAuthStatus)
Auto Trait Implementations§
impl<E> RefUnwindSafe for HostAuthHandler<E>where
E: RefUnwindSafe,
impl<E> Send for HostAuthHandler<E>where
E: Send,
impl<E> Sync for HostAuthHandler<E>where
E: Sync,
impl<E> Unpin for HostAuthHandler<E>where
E: Unpin,
impl<E> UnwindSafe for HostAuthHandler<E>where
E: UnwindSafe,
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