pub struct Storage {
pub name: Option<String>,
pub source: Option<Ref>,
pub backing_dir: Option<String>,
pub subdir: Option<String>,
pub storage_id: Option<StorageId>,
}
Expand description
Declares a storage capability backed by a directory from which data, cache, or meta storage can be offered.
Fields§
§name: Option<String>
§source: Option<Ref>
§backing_dir: Option<String>
§subdir: Option<String>
§storage_id: Option<StorageId>
Trait Implementations§
Source§impl CompatFrom<Storage> for Storage
impl CompatFrom<Storage> for Storage
Source§fn compat_from(value: Storage) -> Self
fn compat_from(value: Storage) -> Self
Converts
value
into a value of this type.Source§impl CompatFrom<Storage> for Storage
impl CompatFrom<Storage> for Storage
Source§fn compat_from(value: Storage) -> Self
fn compat_from(value: Storage) -> Self
Converts
value
into a value of this type.Source§impl<___E> EncodeRef<___E> for Storagewhere
___E: Encoder + ?Sized,
impl<___E> EncodeRef<___E> for Storagewhere
___E: Encoder + ?Sized,
Source§fn encode_ref(
&self,
encoder: &mut ___E,
out: &mut MaybeUninit<Self::Encoded>,
_: (),
) -> Result<(), EncodeError>
fn encode_ref( &self, encoder: &mut ___E, out: &mut MaybeUninit<Self::Encoded>, _: (), ) -> Result<(), EncodeError>
Encodes this reference into an encoder and output.
Source§impl<'de> FromWireRef<Storage<'de>> for Storage
impl<'de> FromWireRef<Storage<'de>> for Storage
Source§fn from_wire_ref(wire: &Storage<'de>) -> Self
fn from_wire_ref(wire: &Storage<'de>) -> Self
Converts the given
wire
reference to this type.impl StructuralPartialEq for Storage
Auto Trait Implementations§
impl Freeze for Storage
impl RefUnwindSafe for Storage
impl Send for Storage
impl Sync for Storage
impl Unpin for Storage
impl UnwindSafe for Storage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
Converts the given
wire
to an option of this type.§impl<T, W> FromWireOptionRef<WireBox<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<WireBox<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &WireBox<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &WireBox<'_, W>) -> Option<T>
Converts the given
wire
reference to an option of this type.§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T
to [Self
]