pub struct Rollout {
pub bucket_start: u8,
pub bucket_end: u8,
}Expand description
Half-open bucket range [bucket_start, bucket_end) over 0..100, giving this
workflow a slice of the traffic on its channel.
Compared against crate::Message::routing_bucket. The engine does not
derive the bucket: how a caller maps to one — a sticky hash of some request
identity, a per-message random draw, round-robin — is entirely the caller’s
policy and deliberately stays outside this crate.
Fields§
§bucket_start: u8Inclusive lower bound.
bucket_end: u8Exclusive upper bound. 100 means “up to and including bucket 99”.
Implementations§
Trait Implementations§
impl Copy for Rollout
Source§impl<'de> Deserialize<'de> for Rollout
impl<'de> Deserialize<'de> for Rollout
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Rollout
impl StructuralPartialEq for Rollout
Auto Trait Implementations§
impl Freeze for Rollout
impl RefUnwindSafe for Rollout
impl Send for Rollout
impl Sync for Rollout
impl Unpin for Rollout
impl UnsafeUnpin for Rollout
impl UnwindSafe for Rollout
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