pub struct KeepaliveSchedule { /* private fields */ }Implementations§
Source§impl KeepaliveSchedule
impl KeepaliveSchedule
pub fn new(keepalive: Keepalive, now: InstantMillis) -> KeepaliveSchedule
pub const fn deadline(self) -> Option<InstantMillis>
pub fn due(self, now: InstantMillis) -> Option<KeepaliveTransmission>
pub fn wrote(&mut self, now: InstantMillis)
Trait Implementations§
Source§impl Clone for KeepaliveSchedule
impl Clone for KeepaliveSchedule
Source§fn clone(&self) -> KeepaliveSchedule
fn clone(&self) -> KeepaliveSchedule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for KeepaliveSchedule
Source§impl Debug for KeepaliveSchedule
impl Debug for KeepaliveSchedule
impl Eq for KeepaliveSchedule
Source§impl PartialEq for KeepaliveSchedule
impl PartialEq for KeepaliveSchedule
impl StructuralPartialEq for KeepaliveSchedule
Auto Trait Implementations§
impl Freeze for KeepaliveSchedule
impl RefUnwindSafe for KeepaliveSchedule
impl Send for KeepaliveSchedule
impl Sync for KeepaliveSchedule
impl Unpin for KeepaliveSchedule
impl UnsafeUnpin for KeepaliveSchedule
impl UnwindSafe for KeepaliveSchedule
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