pub struct ReloadState {
pub old_handle: u64,
pub new_handle: u64,
pub draining: bool,
/* private fields */
}Fields§
§old_handle: u64§new_handle: u64§draining: boolImplementations§
Source§impl ReloadState
impl ReloadState
pub fn new(old_handle: u64, new_handle: u64, in_flight_count: usize) -> Self
pub fn in_flight_count(&self) -> usize
pub fn is_drain_complete(&self) -> bool
pub fn mark_call_started(&self)
pub fn mark_call_completed(&self)
pub fn wait_for_drain(&self, timeout: Duration) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReloadState
impl RefUnwindSafe for ReloadState
impl Send for ReloadState
impl Sync for ReloadState
impl Unpin for ReloadState
impl UnsafeUnpin for ReloadState
impl UnwindSafe for ReloadState
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