pub struct OfferStorage {
pub source_name: Option<String>,
pub source: Option<Ref>,
pub target: Option<Ref>,
pub target_name: Option<String>,
pub availability: Option<Availability>,
/* private fields */
}
Expand description
Declares a storage capability offered by a component to one of its children, such as meta storage offered by the component’s containing realm or cache storage offered by the component itself.
Fields§
§source_name: Option<String>
(Required) The name of the storage capability being offered
source: Option<Ref>
(Required) The provider of the capability relative to the component
itself. Must be parent
, self
, child
, or void
.
If set to void
, then the target must offer or use the capability with
OPTIONAL
or TRANSITIONAL
availability.
target: Option<Ref>
(Required) Reference to the target. Must be child
, collection
, or
a dictionary capability
.
target_name: Option<String>
(Required) The name the storage capability is being offered as
availability: Option<Availability>
(Optional, defaults to REQUIRED
) The availability of this capability.
If set to required
, the target may use or offer the capability with
either required
or optional
availability. If set to optional
, the
target must use or offer the capability with optional
availability.
The same_as_target
value causes this offer’s availability to match the
availability set in the target.
Trait Implementations§
source§impl Clone for OfferStorage
impl Clone for OfferStorage
source§fn clone(&self) -> OfferStorage
fn clone(&self) -> OfferStorage
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OfferStorage
impl Debug for OfferStorage
source§impl<D: ResourceDialect> Decode<OfferStorage, D> for OfferStorage
impl<D: ResourceDialect> Decode<OfferStorage, D> for OfferStorage
source§impl Default for OfferStorage
impl Default for OfferStorage
source§fn default() -> OfferStorage
fn default() -> OfferStorage
source§impl<D: ResourceDialect> Encode<OfferStorage, D> for &OfferStorage
impl<D: ResourceDialect> Encode<OfferStorage, D> for &OfferStorage
source§impl PartialEq for OfferStorage
impl PartialEq for OfferStorage
source§fn eq(&self, other: &OfferStorage) -> bool
fn eq(&self, other: &OfferStorage) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl TypeMarker for OfferStorage
impl TypeMarker for OfferStorage
§type Owned = OfferStorage
type Owned = OfferStorage
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
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 more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
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 OfferStorage
impl ValueTypeMarker for OfferStorage
§type Borrowed<'a> = &'a OfferStorage
type Borrowed<'a> = &'a OfferStorage
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for OfferStorage
impl StructuralPartialEq for OfferStorage
Auto Trait Implementations§
impl Freeze for OfferStorage
impl RefUnwindSafe for OfferStorage
impl Send for OfferStorage
impl Sync for OfferStorage
impl Unpin for OfferStorage
impl UnwindSafe for OfferStorage
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)