[][src]Struct canonical_host::Remote

pub struct Remote<S: Store> { /* fields omitted */ }

A representation of a Module of erased type, with its root state reachable from the Id in the store.

Implementations

impl<S: Store> Remote<S>[src]

pub fn new<T: Canon<S>>(from: T, store: &S) -> Result<Self, S::Error>[src]

Create a new remote given the initial State and store reference

pub fn cast<T: Canon<S>>(&self) -> Result<T, S::Error>[src]

Attempt casting this Remote to type T

pub fn cast_mut<T: Canon<S>>(&mut self) -> Result<CastMut<'_, T, S>, S::Error>[src]

Attempt casting this Remote to a mutable reference to type T

Trait Implementations

impl<S: Store> Canon<S> for Remote<S>[src]

impl<S: Clone + Store> Clone for Remote<S> where
    S::Ident: Clone
[src]

impl<S: Debug + Store> Debug for Remote<S> where
    S::Ident: Debug
[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for Remote<S> where
    S: RefUnwindSafe,
    <S as Store>::Ident: RefUnwindSafe

impl<S> Send for Remote<S> where
    S: Send,
    <S as Store>::Ident: Send

impl<S> Sync for Remote<S> where
    S: Sync,
    <S as Store>::Ident: Sync

impl<S> Unpin for Remote<S> where
    S: Unpin,
    <S as Store>::Ident: Unpin

impl<S> UnwindSafe for Remote<S> where
    S: UnwindSafe,
    <S as Store>::Ident: 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> 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.