pub struct Cancelling;Trait Implementations§
Source§impl Operation for Cancelling
impl Operation for Cancelling
type Declaration = Cancel
type Resources = ()
type Error = Error
type Context<'a> = Context<'a>
type Endpoints = ()
async fn initialize<'ctx>(_: Arc<()>, _: Self::Context<'ctx>) -> Result<Self>
async fn run<'ctx>( &mut self, context: Self::Context<'ctx>, request: &mut Cancel, _: &mut Self::Endpoints, ) -> Result<Response<InstanceState>>
fn stop(&mut self) -> impl Future<Output = Result<(), Self::Error>> + Send
fn cleanup(&mut self) -> impl Future<Output = Result<(), Self::Error>> + Send
fn transferred(&self) -> bool
fn classify(_error: &Self::Error) -> FailureKind
Auto Trait Implementations§
impl Freeze for Cancelling
impl RefUnwindSafe for Cancelling
impl Send for Cancelling
impl Sync for Cancelling
impl Unpin for Cancelling
impl UnsafeUnpin for Cancelling
impl UnwindSafe for Cancelling
Blanket Implementations§
impl<T> Allocation for T
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