Struct ockam_node::MessageReceiveOptions
source · pub struct MessageReceiveOptions { /* private fields */ }Expand description
Full set of options to send_and_receive_extended function
Implementations§
source§impl MessageReceiveOptions
impl MessageReceiveOptions
sourcepub fn new() -> Self
pub fn new() -> Self
Default options with DEFAULT_TIMEOUT
sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Set custom timeout
sourcepub fn with_timeout_secs(self, timeout: u64) -> Self
pub fn with_timeout_secs(self, timeout: u64) -> Self
Set custom timeout in seconds
sourcepub fn without_timeout(self) -> Self
pub fn without_timeout(self) -> Self
Wait for the message forever