[−][src]Struct canonical_host::Remote
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]
pub fn write(&self, sink: &mut impl Sink<S>) -> Result<(), S::Error>
[src]
pub fn read(source: &mut impl Source<S>) -> Result<Self, S::Error>
[src]
pub fn encoded_len(&self) -> usize
[src]
impl<S: Clone + Store> Clone for Remote<S> where
S::Ident: Clone,
[src]
S::Ident: Clone,
impl<S: Debug + Store> Debug for Remote<S> where
S::Ident: Debug,
[src]
S::Ident: Debug,
Auto Trait Implementations
impl<S> RefUnwindSafe for Remote<S> where
S: RefUnwindSafe,
<S as Store>::Ident: RefUnwindSafe,
[src]
S: RefUnwindSafe,
<S as Store>::Ident: RefUnwindSafe,
impl<S> Send for Remote<S> where
S: Send,
<S as Store>::Ident: Send,
[src]
S: Send,
<S as Store>::Ident: Send,
impl<S> Sync for Remote<S> where
S: Sync,
<S as Store>::Ident: Sync,
[src]
S: Sync,
<S as Store>::Ident: Sync,
impl<S> Unpin for Remote<S> where
S: Unpin,
<S as Store>::Ident: Unpin,
[src]
S: Unpin,
<S as Store>::Ident: Unpin,
impl<S> UnwindSafe for Remote<S> where
S: UnwindSafe,
<S as Store>::Ident: UnwindSafe,
[src]
S: UnwindSafe,
<S as Store>::Ident: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,