pub struct Watch {
pub instance: u64,
}Fields§
§instance: u64Implementations§
Source§impl Watch
impl Watch
pub fn definition() -> OperationDefinition
Trait Implementations§
impl Contains<Watch> for Lifecycle
Source§impl MemorySize for Watch
impl MemorySize for Watch
fn memory_size(&self) -> usize
Source§const INLINE_ONLY: bool = false
const INLINE_ONLY: bool = false
True only when every value occupies exactly
size_of::<Self>() bytes,
with no separately owned allocations or additional accounting charge.Source§impl OperationDeclaration for Watch
impl OperationDeclaration for Watch
const ID: &'static str = "host.operations.watch"
const OPERATIONS: &'static [WireDeclaration]
const POLICY: OperationPolicy = super::WATCH_POLICY
const VISIBILITY: Visibility = crate::operations::Visibility::Shared
const GRPC: Option<Grpc>
type Request = Watch
type Response = InstanceState
type Input = NoStream
type Output = Stream<InstanceState>
const DESCRIPTION: &'static str = ""
const REPLAY: ReplaySafety = ReplaySafety::Unknown
fn definition() -> OperationDefinition
fn grant(_request: &Self::Request) -> Option<Grant>
fn key(_request: &Self::Request) -> Option<CacheKey>
Source§impl RowMetadata for Watch
impl RowMetadata for Watch
const ROW_METADATA_JSON: &'static str = "[{\"metadata\":{\"attributes\":{},\"description\":null,\"identifier\":\"instance\",\"label\":\"Instance\",\"tags\":[]},\"role\":null,\"unit\":null}]"
fn row_metadata() -> Vec<StreamField>
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 PostcardReader<'_>) -> Result<usize, MessageError>
fn read(input: &mut PostcardReader<'_>) -> Result<Self, 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§
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