pub struct AutoKeepAlive { /* private fields */ }Expand description
KeepAliveの送信を指定された間隔で定期的に行う
note: このオブジェクトはKeepAliveSenderを実装した型のautoメソッドから返されますが、
必ず返された値を_から始まる任意の名前の変数に格納して、KeepAliveの送信が必要なくなるタイミングまで保持してください。
このオブジェクトがスコープを抜けてdropされた時点でKeepAlive送信スレッドには停止要求が投げられ、
その後KeepAlive送信処理は終了します。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AutoKeepAlive
impl RefUnwindSafe for AutoKeepAlive
impl Send for AutoKeepAlive
impl Sync for AutoKeepAlive
impl Unpin for AutoKeepAlive
impl UnsafeUnpin for AutoKeepAlive
impl UnwindSafe for AutoKeepAlive
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