pub struct Post<T: JsCast>(pub T);Expand description
Wrapper that routes T across the channel as a Javascript value.
#[web_rpc::service]
pub trait Echo {
fn echo(&self, value: Post<js_sys::JsString>) -> Post<js_sys::JsString>;
}Tuple Fields§
§0: TImplementations§
Trait Implementations§
impl<T: Eq + JsCast> Eq for Post<T>
impl<T: PartialEq + JsCast> StructuralPartialEq for Post<T>
Auto Trait Implementations§
impl<T> Freeze for Post<T>where
T: Freeze,
impl<T> RefUnwindSafe for Post<T>where
T: RefUnwindSafe,
impl<T> Send for Post<T>where
T: Send,
impl<T> Sync for Post<T>where
T: Sync,
impl<T> Unpin for Post<T>where
T: Unpin,
impl<T> UnsafeUnpin for Post<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Post<T>where
T: UnwindSafe,
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