pub struct ProcessCancelRequest<'scope> {
pub session_id: &'scope str,
pub process_id: &'scope str,
pub handle: Option<Value>,
pub scope: ProcessOpScope<'scope>,
pub reason: Option<String>,
pub source: ProcessCancelSource,
}Fields§
§session_id: &'scope str§process_id: &'scope str§handle: Option<Value>§scope: ProcessOpScope<'scope>§reason: Option<String>§source: ProcessCancelSourceImplementations§
Source§impl<'scope> ProcessCancelRequest<'scope>
impl<'scope> ProcessCancelRequest<'scope>
pub fn new( session_id: &'scope str, process_id: &'scope str, scope: ProcessOpScope<'scope>, source: ProcessCancelSource, ) -> Self
pub fn with_handle(self, handle: Value) -> Self
pub fn with_reason(self, reason: impl Into<String>) -> Self
Trait Implementations§
Source§impl<'scope> Clone for ProcessCancelRequest<'scope>
impl<'scope> Clone for ProcessCancelRequest<'scope>
Source§fn clone(&self) -> ProcessCancelRequest<'scope>
fn clone(&self) -> ProcessCancelRequest<'scope>
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 moreAuto Trait Implementations§
impl<'scope> !RefUnwindSafe for ProcessCancelRequest<'scope>
impl<'scope> !UnwindSafe for ProcessCancelRequest<'scope>
impl<'scope> Freeze for ProcessCancelRequest<'scope>
impl<'scope> Send for ProcessCancelRequest<'scope>
impl<'scope> Sync for ProcessCancelRequest<'scope>
impl<'scope> Unpin for ProcessCancelRequest<'scope>
impl<'scope> UnsafeUnpin for ProcessCancelRequest<'scope>
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