pub struct BeginFrameArgs {
pub type: Option<i32>,
pub source_id: Option<u64>,
pub sequence_number: Option<u64>,
pub frame_time_us: Option<i64>,
pub deadline_us: Option<i64>,
pub interval_delta_us: Option<i64>,
pub on_critical_path: Option<bool>,
pub animate_only: Option<bool>,
pub frames_throttled_since_last: Option<i64>,
pub created_from: Option<CreatedFrom>,
}Expand description
Next id: 13
Fields§
§type: Option<i32>§source_id: Option<u64>§sequence_number: Option<u64>§frame_time_us: Option<i64>§deadline_us: Option<i64>§interval_delta_us: Option<i64>§on_critical_path: Option<bool>§animate_only: Option<bool>§frames_throttled_since_last: Option<i64>§created_from: Option<CreatedFrom>Implementations§
Source§impl BeginFrameArgs
impl BeginFrameArgs
Sourcepub fn type(&self) -> BeginFrameArgsType
pub fn type(&self) -> BeginFrameArgsType
Returns the enum value of type, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_type(&mut self, value: BeginFrameArgsType)
pub fn set_type(&mut self, value: BeginFrameArgsType)
Sets type to the provided enum value.
Sourcepub fn source_id(&self) -> u64
pub fn source_id(&self) -> u64
Returns the value of source_id, or the default value if source_id is unset.
Sourcepub fn sequence_number(&self) -> u64
pub fn sequence_number(&self) -> u64
Returns the value of sequence_number, or the default value if sequence_number is unset.
Sourcepub fn frame_time_us(&self) -> i64
pub fn frame_time_us(&self) -> i64
Returns the value of frame_time_us, or the default value if frame_time_us is unset.
Sourcepub fn deadline_us(&self) -> i64
pub fn deadline_us(&self) -> i64
Returns the value of deadline_us, or the default value if deadline_us is unset.
Sourcepub fn interval_delta_us(&self) -> i64
pub fn interval_delta_us(&self) -> i64
Returns the value of interval_delta_us, or the default value if interval_delta_us is unset.
Sourcepub fn on_critical_path(&self) -> bool
pub fn on_critical_path(&self) -> bool
Returns the value of on_critical_path, or the default value if on_critical_path is unset.
Sourcepub fn animate_only(&self) -> bool
pub fn animate_only(&self) -> bool
Returns the value of animate_only, or the default value if animate_only is unset.
Sourcepub fn frames_throttled_since_last(&self) -> i64
pub fn frames_throttled_since_last(&self) -> i64
Returns the value of frames_throttled_since_last, or the default value if frames_throttled_since_last is unset.
Trait Implementations§
Source§impl Clone for BeginFrameArgs
impl Clone for BeginFrameArgs
Source§fn clone(&self) -> BeginFrameArgs
fn clone(&self) -> BeginFrameArgs
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BeginFrameArgs
impl Debug for BeginFrameArgs
Source§impl Default for BeginFrameArgs
impl Default for BeginFrameArgs
Source§fn default() -> BeginFrameArgs
fn default() -> BeginFrameArgs
Source§impl Message for BeginFrameArgs
impl Message for BeginFrameArgs
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for BeginFrameArgs
impl PartialEq for BeginFrameArgs
impl StructuralPartialEq for BeginFrameArgs
Auto Trait Implementations§
impl Freeze for BeginFrameArgs
impl RefUnwindSafe for BeginFrameArgs
impl Send for BeginFrameArgs
impl Sync for BeginFrameArgs
impl Unpin for BeginFrameArgs
impl UnwindSafe for BeginFrameArgs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].