pub struct RevocationResult {
pub revoked: bool,
pub mode: RevocationMode,
pub reason: Option<String>,
pub signal: Option<String>,
}Expand description
Result of a revocation check
Fields§
§revoked: boolWhether the task is revoked
mode: RevocationModeRevocation mode
reason: Option<String>Reason for revocation
signal: Option<String>Signal to send (for terminate mode)
Implementations§
Source§impl RevocationResult
impl RevocationResult
Sourcepub fn not_revoked() -> Self
pub fn not_revoked() -> Self
Create a result indicating task is not revoked
Trait Implementations§
Source§impl Clone for RevocationResult
impl Clone for RevocationResult
Source§fn clone(&self) -> RevocationResult
fn clone(&self) -> RevocationResult
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 moreAuto Trait Implementations§
impl Freeze for RevocationResult
impl RefUnwindSafe for RevocationResult
impl Send for RevocationResult
impl Sync for RevocationResult
impl Unpin for RevocationResult
impl UnwindSafe for RevocationResult
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