pub struct Server<A, B, L, More> { /* private fields */ }
Implementations§
Source§impl<A, B, L, More> Server<A, B, L, More>where
A: Action,
impl<A, B, L, More> Server<A, B, L, More>where
A: Action,
pub fn register_request<H>(&mut self, handler: H)
pub fn register_data<D>(&mut self, data: D)
Source§impl<A, B, L, More> Server<A, B, L, More>
impl<A, B, L, More> Server<A, B, L, More>
Sourcepub fn set_log_errors(&mut self, log: bool)
pub fn set_log_errors(&mut self, log: bool)
If this is set to true
errors which are returned in #[api(*)]
functions are logged to tracing
Sourcepub fn build(self) -> BuiltServer<A, B, L, More>
pub fn build(self) -> BuiltServer<A, B, L, More>
optionally or just use run
Source§impl<A, L> Server<A, PlainBytes, L, ()>
impl<A, L> Server<A, PlainBytes, L, ()>
Source§impl<A, L> Server<A, EncryptedBytes, L, Keypair>
impl<A, L> Server<A, EncryptedBytes, L, Keypair>
Auto Trait Implementations§
impl<A, B, L, More> Freeze for Server<A, B, L, More>
impl<A, B, L, More> !RefUnwindSafe for Server<A, B, L, More>
impl<A, B, L, More> Send for Server<A, B, L, More>
impl<A, B, L, More> Sync for Server<A, B, L, More>
impl<A, B, L, More> Unpin for Server<A, B, L, More>
impl<A, B, L, More> !UnwindSafe for Server<A, B, L, More>
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