Struct digitalis_protobuf::base::Duration
source · pub struct Duration {
pub seconds: i64,
pub nanos: i32,
pub special_fields: SpecialFields,
}Fields§
§seconds: i64Signed seconds of the span of time. Must be from -315,576,000,000 to +315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
nanos: i32Signed fractions of a second at nanosecond resolution of the span
of time. Durations less than one second are represented with a 0
seconds field and a positive or negative nanos field. For durations
of one second or more, a non-zero value for the nanos field must be
of the same sign as the seconds field. Must be from -999,999,999
to +999,999,999 inclusive.
special_fields: SpecialFieldsImplementations§
Trait Implementations§
source§impl From<Duration> for Duration
impl From<Duration> for Duration
Convert from std::time::Duration.
Panics
If std::time::Duration value is outside of Duration supported range.
source§impl Into<Duration> for Duration
impl Into<Duration> for Duration
Convert to std::time::Duration.
This conversion might be lossy if std::time::Duration precision is smaller than nanoseconds.
Panics
If Duration value is outside of std::time::Duration supported range.
source§impl Message for Duration
impl Message for Duration
source§fn is_initialized(&self) -> bool
fn is_initialized(&self) -> bool
true for protobuf 3.source§fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> Result<(), Error>
fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> Result<(), Error>
source§fn compute_size(&self) -> u64
fn compute_size(&self) -> u64
source§fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), Error>
fn write_to_with_cached_sizes( &self, os: &mut CodedOutputStream<'_> ) -> Result<(), Error>
source§fn special_fields(&self) -> &SpecialFields
fn special_fields(&self) -> &SpecialFields
source§fn mut_special_fields(&mut self) -> &mut SpecialFields
fn mut_special_fields(&mut self) -> &mut SpecialFields
source§fn default_instance() -> &'static Duration
fn default_instance() -> &'static Duration
source§fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, Error>
fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, Error>
source§fn cached_size(&self) -> u32
fn cached_size(&self) -> u32
compute_size. Read moresource§fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), Error>
fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), Error>
source§fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), Error>
fn write_length_delimited_to( &self, os: &mut CodedOutputStream<'_> ) -> Result<(), Error>
source§fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8, Global>
) -> Result<(), Error>
fn write_length_delimited_to_vec( &self, vec: &mut Vec<u8, Global> ) -> Result<(), Error>
source§fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
source§fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, Error>
fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, Error>
source§fn check_initialized(&self) -> Result<(), Error>
fn check_initialized(&self) -> Result<(), Error>
source§fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), Error>
fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), Error>
source§fn write_to_vec(&self, v: &mut Vec<u8, Global>) -> Result<(), Error>
fn write_to_vec(&self, v: &mut Vec<u8, Global>) -> Result<(), Error>
source§fn write_to_bytes(&self) -> Result<Vec<u8, Global>, Error>
fn write_to_bytes(&self) -> Result<Vec<u8, Global>, Error>
source§fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write
) -> Result<(), Error>
fn write_length_delimited_to_writer( &self, w: &mut dyn Write ) -> Result<(), Error>
source§fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8, Global>, Error>
fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8, Global>, Error>
source§fn unknown_fields(&self) -> &UnknownFields
fn unknown_fields(&self) -> &UnknownFields
source§fn mut_unknown_fields(&mut self) -> &mut UnknownFields
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
source§impl MessageFull for Duration
impl MessageFull for Duration
source§fn descriptor() -> MessageDescriptor
fn descriptor() -> MessageDescriptor
source§fn reflect_eq(&self, other: &Self, mode: &ReflectEqMode) -> bool
fn reflect_eq(&self, other: &Self, mode: &ReflectEqMode) -> bool
source§impl PartialEq<Duration> for Duration
impl PartialEq<Duration> for Duration
source§impl ProtobufValue for Duration
impl ProtobufValue for Duration
§type RuntimeType = RuntimeTypeMessage<Duration>
type RuntimeType = RuntimeTypeMessage<Duration>
impl StructuralPartialEq for Duration
Auto Trait Implementations§
impl RefUnwindSafe for Duration
impl Send for Duration
impl Sync for Duration
impl Unpin for Duration
impl UnwindSafe for Duration
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<M> MessageDyn for Mwhere
M: MessageFull,
impl<M> MessageDyn for Mwhere M: MessageFull,
source§fn descriptor_dyn(&self) -> MessageDescriptor
fn descriptor_dyn(&self) -> MessageDescriptor
source§fn merge_from_dyn(&mut self, is: &mut CodedInputStream<'_>) -> Result<(), Error>
fn merge_from_dyn(&mut self, is: &mut CodedInputStream<'_>) -> Result<(), Error>
source§fn write_to_with_cached_sizes_dyn(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), Error>
fn write_to_with_cached_sizes_dyn( &self, os: &mut CodedOutputStream<'_> ) -> Result<(), Error>
source§fn compute_size_dyn(&self) -> u64
fn compute_size_dyn(&self) -> u64
source§fn is_initialized_dyn(&self) -> bool
fn is_initialized_dyn(&self) -> bool
true for protobuf 3.