Skip to main content

Access

Struct Access 

Source
pub struct Access<'app, 'life: 'app, 'd: 'life, D, Q = (), Plan = <D as Layout<'d>>::ParkPlan> { /* private fields */ }
Expand description

Borrowed capabilities shared by every live application view.

Implementations§

Source§

impl<'app, 'life: 'app, 'd: 'life, D, Q, Plan> Access<'app, 'life, 'd, D, Q, Plan>

Source

pub fn state_token(&mut self) -> &mut Token<Identity<'d, 1>>

Source

pub fn root_client(&mut self) -> <D::Provider as Provider<'d>>::Client<'app>
where D: Root<'d>, D::Provider: 'app,

Issues the client of the complete installed root.

Source

pub fn client<P>( &mut self, select: impl for<'borrow> FnOnce(Pin<&'borrow D>) -> Pin<&'borrow P>, ) -> <P::Provider as Provider<'d>>::Client<'app>
where P: Root<'d>, P::Provider: 'app,

Source

pub fn client_with<P, C>( &mut self, select: impl for<'borrow> FnOnce(Pin<&'borrow D>) -> Pin<&'borrow P>, issue: impl for<'borrow> FnOnce(Context<'borrow, 'app, 'd, P>) -> C, ) -> C

Source

pub fn inspect<P, C>( &mut self, select: impl for<'borrow> FnOnce(Pin<&'borrow D>) -> Pin<&'borrow P>, inspect: impl for<'borrow> FnOnce(Pin<&'borrow P>) -> C, ) -> C

Auto Trait Implementations§

§

impl<'app, 'life, 'd, D, Q = (), Plan = <D as Layout<'d>>::ParkPlan> !RefUnwindSafe for Access<'app, 'life, 'd, D, Q, Plan>

§

impl<'app, 'life, 'd, D, Q = (), Plan = <D as Layout<'d>>::ParkPlan> !Send for Access<'app, 'life, 'd, D, Q, Plan>

§

impl<'app, 'life, 'd, D, Q = (), Plan = <D as Layout<'d>>::ParkPlan> !Sync for Access<'app, 'life, 'd, D, Q, Plan>

§

impl<'app, 'life, 'd, D, Q = (), Plan = <D as Layout<'d>>::ParkPlan> !UnwindSafe for Access<'app, 'life, 'd, D, Q, Plan>

§

impl<'app, 'life, 'd, D, Q, Plan> Freeze for Access<'app, 'life, 'd, D, Q, Plan>
where &'app mut Core<'life, 'd, Q>: Freeze, View<'app, 'd, D, Live, Plan>: Freeze,

§

impl<'app, 'life, 'd, D, Q, Plan> Unpin for Access<'app, 'life, 'd, D, Q, Plan>
where &'app mut Core<'life, 'd, Q>: Unpin, View<'app, 'd, D, Live, Plan>: Unpin,

§

impl<'app, 'life, 'd, D, Q, Plan> UnsafeUnpin for Access<'app, 'life, 'd, D, Q, Plan>
where &'app mut Core<'life, 'd, Q>: UnsafeUnpin, View<'app, 'd, D, Live, Plan>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> Convert<T> for T

Source§

fn into(self) -> T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.