pub struct Watching;Trait Implementations§
Source§impl Operation for Watching
impl Operation for Watching
type Declaration = Watch
type Resources = ()
type Error = Error
type Context<'a> = Context<'a>
type Endpoints = StreamOutput<InstanceState, Error>
async fn initialize<'ctx>(_: Arc<()>, _: Self::Context<'ctx>) -> Result<Self>
async fn run<'ctx>( &mut self, context: Self::Context<'ctx>, request: &mut Watch, output: &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 Watching
impl RefUnwindSafe for Watching
impl Send for Watching
impl Sync for Watching
impl Unpin for Watching
impl UnsafeUnpin for Watching
impl UnwindSafe for Watching
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