pub struct Configuration {
pub shutdown: Box<dyn Shutdown>,
pub timeout: Option<Duration>,
}Expand description
Configuration for consume method.
Fields§
§shutdown: Box<dyn Shutdown>When this future resolves all pending consumer requests error out with returned ShutdownType-related error.
timeout: Option<Duration>Consumer timeout - closes used transport if consumer is idle (there are no pending requests) and consumer is not used for specified duration.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Configuration
impl !Sync for Configuration
impl !UnwindSafe for Configuration
impl Freeze for Configuration
impl Send for Configuration
impl Unpin for Configuration
impl UnsafeUnpin for Configuration
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