pub struct Options { /* private fields */ }Expand description
By default, RPC frame and notification handlers are launched in background, which allows non-blocking event processing, however events can be processed in random order
RPC options allow to launch handlers in blocking mode. In this case handlers must process events as fast as possible (e.g. send them to processing channels) and avoid using any RPC client functions from inside.
WARNING: when handling frames in blocking mode, it is forbidden to use the current RPC client directly or with any kind of bounded channels, otherwise the RPC client may get stuck!
See https://busrt.readthedocs.io/en/latest/rpc_blocking.html
Implementations
sourceimpl Options
impl Options
pub fn new() -> Self
pub fn blocking_notifications(self) -> Self
pub fn blocking_frames(self) -> Self
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more