pub struct SendTimeout(pub Duration);
Expand description
Sets timeout on message send.
If message cannot be sent within specified time, then it shall error out with timed_out error
Tuple Fields§
§0: Duration
Trait Implementations§
Source§impl Clone for SendTimeout
impl Clone for SendTimeout
Source§fn clone(&self) -> SendTimeout
fn clone(&self) -> SendTimeout
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SendTimeout
impl Debug for SendTimeout
Source§impl Options<Socket> for SendTimeout
impl Options<Socket> for SendTimeout
impl Copy for SendTimeout
Auto Trait Implementations§
impl Freeze for SendTimeout
impl RefUnwindSafe for SendTimeout
impl Send for SendTimeout
impl Sync for SendTimeout
impl Unpin for SendTimeout
impl UnwindSafe for SendTimeout
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