Struct naia_shared::ReplicaDynRef
source · [−]pub struct ReplicaDynRef<'b, P: Protocolize> { /* private fields */ }
Implementations
sourceimpl<'b, P: Protocolize> ReplicaDynRef<'b, P>
impl<'b, P: Protocolize> ReplicaDynRef<'b, P>
pub fn new(inner: &'b dyn ReplicateSafe<P>) -> Self
Trait Implementations
sourceimpl<P: Protocolize> Deref for ReplicaDynRef<'_, P>
impl<P: Protocolize> Deref for ReplicaDynRef<'_, P>
type Target = dyn ReplicateSafe<P> + 'static
type Target = dyn ReplicateSafe<P> + 'static
The resulting type after dereferencing.
sourcefn deref(&self) -> &dyn ReplicateSafe<P>
fn deref(&self) -> &dyn ReplicateSafe<P>
Dereferences the value.
sourceimpl<'a, P: Protocolize> ReplicaDynRefTrait<P> for ReplicaDynRef<'a, P>
impl<'a, P: Protocolize> ReplicaDynRefTrait<P> for ReplicaDynRef<'a, P>
fn to_dyn_ref(&self) -> &dyn ReplicateSafe<P>
Auto Trait Implementations
impl<'b, P> !RefUnwindSafe for ReplicaDynRef<'b, P>
impl<'b, P> Send for ReplicaDynRef<'b, P>
impl<'b, P> Sync for ReplicaDynRef<'b, P>
impl<'b, P> Unpin for ReplicaDynRef<'b, P>
impl<'b, P> !UnwindSafe for ReplicaDynRef<'b, P>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more