Struct server_fn::ServerFnTraitObj
source · pub struct ServerFnTraitObj<T> { /* private fields */ }Expand description
A server function that can be called from the client.
Implementations§
source§impl<T> ServerFnTraitObj<T>
impl<T> ServerFnTraitObj<T>
sourcepub const fn new(
prefix: &'static str,
url: &'static str,
encoding: Encoding,
run: SerializedFnTraitObj<T>
) -> Self
pub const fn new( prefix: &'static str, url: &'static str, encoding: Encoding, run: SerializedFnTraitObj<T> ) -> Self
Creates a new server function with the given prefix, URL, encoding, and function.
Trait Implementations§
source§impl<T: Clone> Clone for ServerFnTraitObj<T>
impl<T: Clone> Clone for ServerFnTraitObj<T>
source§fn clone(&self) -> ServerFnTraitObj<T>
fn clone(&self) -> ServerFnTraitObj<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> RefUnwindSafe for ServerFnTraitObj<T>
impl<T> Send for ServerFnTraitObj<T>
impl<T> Sync for ServerFnTraitObj<T>
impl<T> Unpin for ServerFnTraitObj<T>
impl<T> UnwindSafe for ServerFnTraitObj<T>
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