pub struct UpstreamForceKeyUnitEventBuilder<'a> {
seqnum: Option<Seqnum>,
running_time_offset: Option<i64>,
other_fields: Vec<(&'a str, SendValue)>,
running_time: Option<ClockTime>,
all_headers: bool,
count: u32,
}
Fields§
§seqnum: Option<Seqnum>
§running_time_offset: Option<i64>
§other_fields: Vec<(&'a str, SendValue)>
§running_time: Option<ClockTime>
§all_headers: bool
§count: u32
Implementations§
source§impl<'a> UpstreamForceKeyUnitEventBuilder<'a>
impl<'a> UpstreamForceKeyUnitEventBuilder<'a>
fn new() -> Self
pub fn running_time(self, running_time: impl Into<Option<ClockTime>>) -> Self
pub fn all_headers(self, all_headers: bool) -> Self
pub fn count(self, count: u32) -> Self
pub fn seqnum(self, seqnum: Seqnum) -> Self
pub fn running_time_offset(self, running_time_offset: i64) -> Self
pub fn other_field(self, name: &'a str, value: impl ToSendValue) -> Self
pub fn other_fields( self, other_fields: &[(&'a str, &'a (dyn ToSendValue + Sync))], ) -> Self
👎Deprecated: use build.other_field() instead
pub fn build(self) -> Event
Auto Trait Implementations§
impl<'a> Freeze for UpstreamForceKeyUnitEventBuilder<'a>
impl<'a> RefUnwindSafe for UpstreamForceKeyUnitEventBuilder<'a>
impl<'a> Send for UpstreamForceKeyUnitEventBuilder<'a>
impl<'a> !Sync for UpstreamForceKeyUnitEventBuilder<'a>
impl<'a> Unpin for UpstreamForceKeyUnitEventBuilder<'a>
impl<'a> UnwindSafe for UpstreamForceKeyUnitEventBuilder<'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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more