pub struct UnboundedTimeoutQueueBuilder { /* private fields */ }Expand description
Terminal builder for an unbounded TimeoutQueue.
Created via TimeoutQueueBuilder::unbounded. The only method is .build().
Implementations§
Source§impl UnboundedTimeoutQueueBuilder
impl UnboundedTimeoutQueueBuilder
Sourcepub fn build<T: 'static>(
self,
now: Instant,
) -> Result<TimeoutQueue<T>, ConfigError>
pub fn build<T: 'static>( self, now: Instant, ) -> Result<TimeoutQueue<T>, ConfigError>
Builds the unbounded 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 UnboundedTimeoutQueueBuilder
impl RefUnwindSafe for UnboundedTimeoutQueueBuilder
impl Send for UnboundedTimeoutQueueBuilder
impl Sync for UnboundedTimeoutQueueBuilder
impl Unpin for UnboundedTimeoutQueueBuilder
impl UnsafeUnpin for UnboundedTimeoutQueueBuilder
impl UnwindSafe for UnboundedTimeoutQueueBuilder
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