pub struct BoundedTimeoutQueueBuilder { /* private fields */ }Expand description
Terminal builder for a bounded TimeoutQueue.
Created via TimeoutQueueBuilder::bounded. The only method is .build().
Implementations§
Source§impl BoundedTimeoutQueueBuilder
impl BoundedTimeoutQueueBuilder
Sourcepub fn build<T: 'static>(
self,
now: Instant,
) -> Result<BoundedTimeoutQueue<T>, ConfigError>
pub fn build<T: 'static>( self, now: Instant, ) -> Result<BoundedTimeoutQueue<T>, ConfigError>
Builds the bounded timeout queue, validating the configuration.
§Errors
Returns ConfigError if the configuration is invalid (zero timeout, or a
tick duration that is zero or exceeds u64 nanoseconds).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BoundedTimeoutQueueBuilder
impl RefUnwindSafe for BoundedTimeoutQueueBuilder
impl Send for BoundedTimeoutQueueBuilder
impl Sync for BoundedTimeoutQueueBuilder
impl Unpin for BoundedTimeoutQueueBuilder
impl UnsafeUnpin for BoundedTimeoutQueueBuilder
impl UnwindSafe for BoundedTimeoutQueueBuilder
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