[][src]Struct naia_socket_shared::Ref

pub struct Ref<T> { /* fields omitted */ }

A reference abstraction that can handle single-threaded and multi-threaded environments

Implementations

impl<T> Ref<T>[src]

pub fn new(value: T) -> Self[src]

Creates a new 'Ref' containing 'value'

pub fn borrow(&self) -> Guard<'_, T>[src]

Immutably borrows the wrapped value

Trait Implementations

impl<T> Clone for Ref<T>[src]

impl<T: Debug> Debug for Ref<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for Ref<T>

impl<T> !Send for Ref<T>

impl<T> !Sync for Ref<T>

impl<T> Unpin for Ref<T>

impl<T> !UnwindSafe for Ref<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,