pub struct SockRefclock { /* private fields */ }Expand description
A listening SOCK refclock endpoint.
Implementations§
Source§impl SockRefclock
impl SockRefclock
Sourcepub fn bind(path: &str) -> Result<SockRefclock, ClockError>
pub fn bind(path: &str) -> Result<SockRefclock, ClockError>
Bind the socket a producer will send to.
Sourcepub fn try_sample(&self) -> Option<RefclockSample>
pub fn try_sample(&self) -> Option<RefclockSample>
Read one pending sample, if any.
Auto Trait Implementations§
impl Freeze for SockRefclock
impl RefUnwindSafe for SockRefclock
impl Send for SockRefclock
impl Sync for SockRefclock
impl Unpin for SockRefclock
impl UnsafeUnpin for SockRefclock
impl UnwindSafe for SockRefclock
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