pub(crate) struct Unit<'a> {
pub(crate) target: Target<'a>,
pub(crate) draft: DraftVersion,
pub(crate) arrived_at: Instant,
}Expand description
One unit of traffic, at one site, at one instant.
Fields§
§target: Target<'a>What the action applies to.
draft: DraftVersionThe draft this session is running as.
arrived_at: InstantWhen the unit arrived. Action::Delay is a deadline measured from
here, not from the moment the hook returned.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for Unit<'a>
impl<'a> RefUnwindSafe for Unit<'a>
impl<'a> Send for Unit<'a>
impl<'a> Sync for Unit<'a>
impl<'a> Unpin for Unit<'a>
impl<'a> UnsafeUnpin for Unit<'a>
impl<'a> UnwindSafe for Unit<'a>
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