pub struct Options {
pub timeout: Option<Duration>,
pub max_queue_len: Option<u64>,
pub priority: u8,
pub force_wakeup: bool,
}Expand description
Options for RPC.
Fields§
§timeout: Option<Duration>The timeout of a RPC request.
The default value is None and it means there is no timeout.
This is no effect on notification RPC.
max_queue_len: Option<u64>The allowable number of messages in the transmit queue.
If the current queue length exceeds this value, the new message will be discarded before sending.
The default value is None and it means there is no limitation.
priority: u8The priority of the RPC invocation.
The lower the value, the higher the priority.
The default value is 128.
force_wakeup: boolIf it is true, RPC channel waiting for reconnecting will wake up immediately.
The default value is false.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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