pub struct CallOpts {
pub retry_policy: Option<RetryPolicy>,
pub timeout: Option<Duration>,
pub rune: Option<String>,
pub filter: Option<Value>,
}Expand description
Per-call overrides. Leave fields as None to inherit from the client.
use lnsocket::commando::CallOpts;
let opts = CallOpts::new()
.retry(5) // RetryPolicy::Always { 5 }
.timeout(std::time::Duration::from_secs(9))
.rune("override-rune".into());Fields§
§retry_policy: Option<RetryPolicy>§timeout: Option<Duration>§rune: Option<String>§filter: Option<Value>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CallOpts
impl RefUnwindSafe for CallOpts
impl Send for CallOpts
impl Sync for CallOpts
impl Unpin for CallOpts
impl UnsafeUnpin for CallOpts
impl UnwindSafe for CallOpts
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