pub struct Builder<T>(/* private fields */);
Expand description
A builder for CreateSegment
Implementations§
Source§impl Builder<DataHandleStage>
impl Builder<DataHandleStage>
Sourcepub fn data_handle(self, data_handle: Handle) -> Builder<FrameRateStage>
pub fn data_handle(self, data_handle: Handle) -> Builder<FrameRateStage>
Sets the data_handle
field.
Source§impl Builder<FrameRateStage>
impl Builder<FrameRateStage>
Sourcepub fn frame_rate(self, frame_rate: f64) -> Builder<DurationSecondsStage>
pub fn frame_rate(self, frame_rate: f64) -> Builder<DurationSecondsStage>
Sets the frame_rate
field.
Source§impl Builder<DurationSecondsStage>
impl Builder<DurationSecondsStage>
Sourcepub fn duration_seconds(self, duration_seconds: f64) -> Builder<TimestampsStage>
pub fn duration_seconds(self, duration_seconds: f64) -> Builder<TimestampsStage>
Sets the duration_seconds
field.
Source§impl Builder<TimestampsStage>
impl Builder<TimestampsStage>
Sourcepub fn timestamps(
self,
timestamps: SegmentTimestamps,
) -> Builder<SegmentEndTimestampStage>
pub fn timestamps( self, timestamps: SegmentTimestamps, ) -> Builder<SegmentEndTimestampStage>
Sets the timestamps
field.
Source§impl Builder<SegmentEndTimestampStage>
impl Builder<SegmentEndTimestampStage>
Sourcepub fn segment_end_timestamp(
self,
segment_end_timestamp: Timestamp,
) -> Builder<Complete>
pub fn segment_end_timestamp( self, segment_end_timestamp: Timestamp, ) -> Builder<Complete>
Sets the segment_end_timestamp
field.
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn data_handle(self, data_handle: Handle) -> Self
pub fn data_handle(self, data_handle: Handle) -> Self
Sets the data_handle
field.
Sourcepub fn frame_rate(self, frame_rate: f64) -> Self
pub fn frame_rate(self, frame_rate: f64) -> Self
Sets the frame_rate
field.
Sourcepub fn duration_seconds(self, duration_seconds: f64) -> Self
pub fn duration_seconds(self, duration_seconds: f64) -> Self
Sets the duration_seconds
field.
Sourcepub fn timestamps(self, timestamps: SegmentTimestamps) -> Self
pub fn timestamps(self, timestamps: SegmentTimestamps) -> Self
Sets the timestamps
field.
Sourcepub fn segment_end_timestamp(self, segment_end_timestamp: Timestamp) -> Self
pub fn segment_end_timestamp(self, segment_end_timestamp: Timestamp) -> Self
Sets the segment_end_timestamp
field.
Sourcepub fn build(self) -> CreateSegment
pub fn build(self) -> CreateSegment
Consumes the builder, returning a CreateSegment
.
Trait Implementations§
Source§impl Default for Builder<DataHandleStage>
impl Default for Builder<DataHandleStage>
Source§impl From<CreateSegment> for Builder<Complete>
impl From<CreateSegment> for Builder<Complete>
Source§fn from(v: CreateSegment) -> Self
fn from(v: CreateSegment) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for Builder<T>where
T: Freeze,
impl<T> RefUnwindSafe for Builder<T>where
T: RefUnwindSafe,
impl<T> Send for Builder<T>where
T: Send,
impl<T> Sync for Builder<T>where
T: Sync,
impl<T> Unpin for Builder<T>where
T: Unpin,
impl<T> UnwindSafe for Builder<T>where
T: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request