Struct ockam::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() -> MessageReceiveOptions
pub fn new() -> MessageReceiveOptions
Default options with DEFAULT_TIMEOUT
sourcepub fn with_timeout(self, timeout: Duration) -> MessageReceiveOptions
pub fn with_timeout(self, timeout: Duration) -> MessageReceiveOptions
Set custom timeout
sourcepub fn with_timeout_secs(self, timeout: u64) -> MessageReceiveOptions
pub fn with_timeout_secs(self, timeout: u64) -> MessageReceiveOptions
Set custom timeout in seconds
sourcepub fn without_timeout(self) -> MessageReceiveOptions
pub fn without_timeout(self) -> MessageReceiveOptions
Wait for the message forever
Trait Implementations§
source§impl Default for MessageReceiveOptions
impl Default for MessageReceiveOptions
source§fn default() -> MessageReceiveOptions
fn default() -> MessageReceiveOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for MessageReceiveOptions
impl Send for MessageReceiveOptions
impl Sync for MessageReceiveOptions
impl Unpin for MessageReceiveOptions
impl UnwindSafe for MessageReceiveOptions
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