pub struct LinuxTimeOffsetBuilder { /* private fields */ }Expand description
Builder for LinuxTimeOffset.
Implementations§
Source§impl LinuxTimeOffsetBuilder
impl LinuxTimeOffsetBuilder
Sourcepub fn secs<VALUE: Into<i64>>(self, value: VALUE) -> Self
pub fn secs<VALUE: Into<i64>>(self, value: VALUE) -> Self
Secs is the offset of clock (in secs) in the container
Sourcepub fn nanosecs<VALUE: Into<u32>>(self, value: VALUE) -> Self
pub fn nanosecs<VALUE: Into<u32>>(self, value: VALUE) -> Self
Nanosecs is the additional offset for Secs (in nanosecs)
Sourcepub fn build(self) -> Result<LinuxTimeOffset, OciSpecError>
pub fn build(self) -> Result<LinuxTimeOffset, OciSpecError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinuxTimeOffsetBuilder
impl RefUnwindSafe for LinuxTimeOffsetBuilder
impl Send for LinuxTimeOffsetBuilder
impl Sync for LinuxTimeOffsetBuilder
impl Unpin for LinuxTimeOffsetBuilder
impl UnwindSafe for LinuxTimeOffsetBuilder
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