pub struct RefreshJob { /* private fields */ }Expand description
Refresh job state and coordination
Implementations§
Source§impl RefreshJob
impl RefreshJob
Sourcepub fn complete_success(&self) -> Result<(), String>
pub fn complete_success(&self) -> Result<(), String>
Mark job as succeeded
Sourcepub fn complete_failure(&self, error: impl Into<String>) -> Result<(), String>
pub fn complete_failure(&self, error: impl Into<String>) -> Result<(), String>
Mark job as failed with error
Sourcepub fn request_shutdown(&self)
pub fn request_shutdown(&self)
Request job shutdown
Sourcepub fn should_shutdown(&self) -> bool
pub fn should_shutdown(&self) -> bool
Check if shutdown was requested
Sourcepub fn status(&self) -> Result<RefreshJobStatus, String>
pub fn status(&self) -> Result<RefreshJobStatus, String>
Get current job status
Trait Implementations§
Source§impl Clone for RefreshJob
impl Clone for RefreshJob
Source§fn clone(&self) -> RefreshJob
fn clone(&self) -> RefreshJob
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RefreshJob
impl Debug for RefreshJob
Auto Trait Implementations§
impl Freeze for RefreshJob
impl RefUnwindSafe for RefreshJob
impl Send for RefreshJob
impl Sync for RefreshJob
impl Unpin for RefreshJob
impl UnwindSafe for RefreshJob
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().