pub struct Builder<T>(/* private fields */);
Expand description
A builder for Segment
Implementations§
Source§impl Builder<RidStage>
impl Builder<RidStage>
Sourcepub fn rid(self, rid: SegmentRid) -> Builder<VideoRidStage>
pub fn rid(self, rid: SegmentRid) -> Builder<VideoRidStage>
Sets the rid
field.
Source§impl Builder<VideoRidStage>
impl Builder<VideoRidStage>
Sourcepub fn video_rid(self, video_rid: VideoRid) -> Builder<DataHandleStage>
pub fn video_rid(self, video_rid: VideoRid) -> Builder<DataHandleStage>
Sets the video_rid
field.
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<Complete>
pub fn timestamps(self, timestamps: SegmentTimestamps) -> Builder<Complete>
Sets the timestamps
field.
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn rid(self, rid: SegmentRid) -> Self
pub fn rid(self, rid: SegmentRid) -> Self
Sets the rid
field.
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.
Trait Implementations§
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