pub struct Watch {
pub instance: u64,
}Fields§
§instance: u64Implementations§
Trait Implementations§
Source§impl MemorySize for Watch
impl MemorySize for Watch
fn memory_size(&self) -> usize
Source§impl OperationDeclaration for Watch
impl OperationDeclaration for Watch
const ID: &'static str = "host.operations.watch"
const VERSION: u32 = 1
const POLICY: OperationPolicy = WATCH_POLICY
const DESCRIPTION: &'static str = "Stream the status changes of an operation instance the caller submitted until it settles"
const VISIBILITY: Visibility = Visibility::Shared
const GRPC: Option<Grpc>
type Response = InstanceState
type Input = NoStream
type Output = Stream<InstanceState>
const REPLAY: ReplaySafety = ReplaySafety::Unknown
fn grant(&self) -> Option<Grant>
fn key(&self) -> Option<CacheKey>
impl StructuralPartialEq for Watch
Source§impl Value for Watch
impl Value for Watch
fn write(&self, bytes: &mut Vec<u8>)
fn size(&self) -> usize
fn memory(input: &mut Reader<'_>) -> Result<usize, MessageError>
fn read(input: &mut Reader<'_>) -> Result<Watch, MessageError>
fn size_many(values: &[Self]) -> usize
fn write_many(values: &[Self], bytes: &mut Vec<u8>)
fn memory_many( input: &mut Reader<'_>, count: usize, ) -> Result<usize, MessageError>
fn read_many( input: &mut Reader<'_>, count: usize, ) -> Result<Vec<Self>, MessageError>
Auto Trait Implementations§
impl Freeze for Watch
impl RefUnwindSafe for Watch
impl Send for Watch
impl Sync for Watch
impl Unpin for Watch
impl UnsafeUnpin for Watch
impl UnwindSafe for Watch
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