pub struct Authorisation<A>(/* private fields */);Implementations§
Source§impl<T> Authorisation<T>
impl<T> Authorisation<T>
Sourcepub const fn promise_for(_v: &T) -> Authorisation<T>
pub const fn promise_for(_v: &T) -> Authorisation<T>
Proof obligation: access to this T has been authorised.
pub fn map<U, F>(self, _f: F) -> Authorisation<U>
Sourcepub fn so_promise<U>(self) -> Authorisation<U>
pub fn so_promise<U>(self) -> Authorisation<U>
Minor proof obligation: in this case, authorised access to T
implies authorised access to U.
Sourcepub const fn promise_any() -> Authorisation<T>
pub const fn promise_any() -> Authorisation<T>
Proof obligation: access to T has been authorised.
Trait Implementations§
Source§impl<A> Clone for Authorisation<A>
impl<A> Clone for Authorisation<A>
Source§impl<A: Debug> Debug for Authorisation<A>
impl<A: Debug> Debug for Authorisation<A>
Source§impl<T: Serialize> From<Authorisation<Global>> for Authorisation<T>
impl<T: Serialize> From<Authorisation<Global>> for Authorisation<T>
Source§fn from(global: Authorisation<Global>) -> Self
fn from(global: Authorisation<Global>) -> Self
Converts to this type from the input type.
impl<A> Copy for Authorisation<A>
Auto Trait Implementations§
impl<A> Freeze for Authorisation<A>
impl<A> RefUnwindSafe for Authorisation<A>where
A: RefUnwindSafe,
impl<A> !Send for Authorisation<A>
impl<A> !Sync for Authorisation<A>
impl<A> Unpin for Authorisation<A>
impl<A> UnsafeUnpin for Authorisation<A>
impl<A> UnwindSafe for Authorisation<A>where
A: RefUnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more