pub struct Expectations {
pub boot_id: Option<String>,
pub proxy_generation: Option<u64>,
pub resource_digest: Option<String>,
pub policy_digest: Option<String>,
pub topology_generation: Option<u64>,
pub bound_driver_url: Option<String>,
/* private fields */
}Expand description
Expected proxy identity. A mismatch – including an absent required field – is rejected before allowlist validation and before any hardware access. Extensible so phase 2 can add takeover expectations without a major version change.
Fields§
§boot_id: Option<String>Required. Absence is a stale-boot-id rejection.
proxy_generation: Option<u64>Required. Absence is a stale-proxy-generation rejection.
resource_digest: Option<String>Required. Absence is a stale-resource-digest rejection.
policy_digest: Option<String>Required. Absence is a stale-policy-digest rejection.
topology_generation: Option<u64>Reserved for phase 2: the Driver Manager topology generation the
host observed. Setting it in phase 1 is rejected as
UNSUPPORTED_EXPECTATION.
bound_driver_url: Option<String>Reserved for phase 2: URL of the driver expected bound before
takeover. Setting it in phase 1 is rejected as
UNSUPPORTED_EXPECTATION.
Trait Implementations§
Source§impl Clone for Expectations
impl Clone for Expectations
Source§fn clone(&self) -> Expectations
fn clone(&self) -> Expectations
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 moreSource§impl Debug for Expectations
impl Debug for Expectations
Source§impl<D> Decode<Expectations, D> for Expectationswhere
D: ResourceDialect,
impl<D> Decode<Expectations, D> for Expectationswhere
D: ResourceDialect,
Source§fn new_empty() -> Expectations
fn new_empty() -> Expectations
Creates a valid instance of
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl Default for Expectations
impl Default for Expectations
Source§fn default() -> Expectations
fn default() -> Expectations
Returns the “default value” for a type. Read more
Source§impl<D> Encode<Expectations, D> for &Expectationswhere
D: ResourceDialect,
impl<D> Encode<Expectations, D> for &Expectationswhere
D: ResourceDialect,
Source§impl PartialEq for Expectations
impl PartialEq for Expectations
impl Persistable for Expectations
impl StructuralPartialEq for Expectations
Source§impl TypeMarker for Expectations
impl TypeMarker for Expectations
Source§type Owned = Expectations
type Owned = Expectations
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for Expectations
impl ValueTypeMarker for Expectations
Source§type Borrowed<'a> = &'a Expectations
type Borrowed<'a> = &'a Expectations
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
value: &<Expectations as TypeMarker>::Owned,
) -> <Expectations as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<Expectations as TypeMarker>::Owned, ) -> <Expectations as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned to Self::Borrowed.Auto Trait Implementations§
impl Freeze for Expectations
impl RefUnwindSafe for Expectations
impl Send for Expectations
impl Sync for Expectations
impl Unpin for Expectations
impl UnsafeUnpin for Expectations
impl UnwindSafe for Expectations
Blanket Implementations§
Source§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
Source§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
Source§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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