Struct fire_stream_api::server::Server
source · 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)where H: RequestHandler<B, Action = A> + Send + Sync + 'static,
pub fn register_data<D>(&mut self, data: D)where D: Any + Send + Sync,
source§impl<A, B, L, More> Server<A, B, L, More>where
A: Action,
L: Listener,
impl<A, B, L, More> Server<A, B, L, More>where A: Action, L: Listener,
sourcepub fn set_log_errors(&mut self, log: bool)
pub fn set_log_errors(&mut self, log: bool)
If this ist set to true
errors which are returned in #[api(*)] functions are logged to stderr
Auto Trait Implementations§
impl<A, B, L, More> !RefUnwindSafe for Server<A, B, L, More>
impl<A, B, L, More> Send for Server<A, B, L, More>where A: Send, L: Send, More: Send,
impl<A, B, L, More> Sync for Server<A, B, L, More>where A: Sync, L: Sync, More: Sync,
impl<A, B, L, More> Unpin for Server<A, B, L, More>where A: Unpin, L: Unpin, More: Unpin,
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