pub struct ClockBoundClient { /* private fields */ }
Implementations§
Source§impl ClockBoundClient
impl ClockBoundClient
Sourcepub fn new() -> Result<ClockBoundClient, ClockBoundError>
pub fn new() -> Result<ClockBoundClient, ClockBoundError>
Creates and returns a new ClockBoundClient.
The creation process also initializes a shared memory reader with the shared memory default path that is used by the ClockBound daemon.
Sourcepub fn new_with_path(
clockbound_shm_path: &str,
) -> Result<ClockBoundClient, ClockBoundError>
pub fn new_with_path( clockbound_shm_path: &str, ) -> Result<ClockBoundClient, ClockBoundError>
Creates and returns a new ClockBoundClient, specifying a shared memory path that is being used by the ClockBound daemon. The VMClock will be accessed by reading the default VMClock shared memory path.
Sourcepub fn new_with_paths(
clockbound_shm_path: &str,
vmclock_shm_path: &str,
) -> Result<ClockBoundClient, ClockBoundError>
pub fn new_with_paths( clockbound_shm_path: &str, vmclock_shm_path: &str, ) -> Result<ClockBoundClient, ClockBoundError>
Creates and returns a new ClockBoundClient, specifying a shared memory paths that are being used by the ClockBound daemon and by the VMClock, respectively.
Sourcepub fn now(&mut self) -> Result<ClockBoundNowResult, ClockBoundError>
pub fn now(&mut self) -> Result<ClockBoundNowResult, ClockBoundError>
Obtains the clock error bound and clock status at the current moment.
Auto Trait Implementations§
impl Freeze for ClockBoundClient
impl RefUnwindSafe for ClockBoundClient
impl !Send for ClockBoundClient
impl !Sync for ClockBoundClient
impl Unpin for ClockBoundClient
impl UnwindSafe for ClockBoundClient
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