Struct otter_api_tests::Unauthorised[][src]

pub struct Unauthorised<T, A>(_, _);

Implementations

impl<T, A> Unauthorised<T, A>[src]

pub fn of(t: T) -> Unauthorised<T, A>[src]

pub fn by(self, _auth: Authorisation<A>) -> T[src]

pub fn by_ref(&self, _auth: Authorisation<A>) -> &T

Notable traits for &'_ mut R

impl<'_, R> Read for &'_ mut R where
    R: Read + ?Sized
impl<'_, W> Write for &'_ mut W where
    W: Write + ?Sized
impl<'_, I> Iterator for &'_ mut I where
    I: Iterator + ?Sized
type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
    F: Future + Unpin + ?Sized
type Output = <F as Future>::Output;
[src]

pub fn by_mut(&mut self, _auth: Authorisation<A>) -> &mut T

Notable traits for &'_ mut R

impl<'_, R> Read for &'_ mut R where
    R: Read + ?Sized
impl<'_, W> Write for &'_ mut W where
    W: Write + ?Sized
impl<'_, I> Iterator for &'_ mut I where
    I: Iterator + ?Sized
type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
    F: Future + Unpin + ?Sized
type Output = <F as Future>::Output;
[src]

impl<A> Unauthorised<InstanceRef, A>[src]

pub fn lock(
    &'r self
) -> Result<Unauthorised<InstanceGuard<'r>, A>, GameBeingDestroyed>
[src]

pub fn lock_even_destroying(&'r self) -> Unauthorised<InstanceGuard<'r>, A>[src]

Trait Implementations

impl<T, A> Clone for Unauthorised<T, A> where
    T: Clone,
    A: Clone
[src]

impl<T, A> Copy for Unauthorised<T, A> where
    T: Copy,
    A: Copy
[src]

impl<T, A> Debug for Unauthorised<T, A> where
    T: Debug,
    A: Debug
[src]

impl<T, A> From<T> for Unauthorised<T, A>[src]

Auto Trait Implementations

impl<T, A> RefUnwindSafe for Unauthorised<T, A> where
    A: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, A> Send for Unauthorised<T, A> where
    A: Send,
    T: Send

impl<T, A> Sync for Unauthorised<T, A> where
    A: Sync,
    T: Sync

impl<T, A> Unpin for Unauthorised<T, A> where
    A: Unpin,
    T: Unpin

impl<T, A> UnwindSafe for Unauthorised<T, A> where
    A: UnwindSafe,
    T: UnwindSafe

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> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<A> DynCastExt for A

impl<T> From<!> for T[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>,