Struct spin_app::MetadataKey
pub struct MetadataKey<T = String> { /* private fields */ }
Expand description
MetadataKey is a handle to a typed metadata value.
Implementations§
§impl<T> MetadataKey<T>
impl<T> MetadataKey<T>
pub const fn new(key: &'static str) -> MetadataKey<T>
pub const fn new(key: &'static str) -> MetadataKey<T>
Creates a new MetadataKey.
Trait Implementations§
§impl<T> AsRef<str> for MetadataKey<T>
impl<T> AsRef<str> for MetadataKey<T>
§impl<T> Clone for MetadataKey<T>
impl<T> Clone for MetadataKey<T>
§fn clone(&self) -> MetadataKey<T>
fn clone(&self) -> MetadataKey<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl<T> Debug for MetadataKey<T>
impl<T> Debug for MetadataKey<T>
impl<T> Copy for MetadataKey<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for MetadataKey<T>where
T: RefUnwindSafe,
impl<T> Send for MetadataKey<T>where
T: Send,
impl<T> Sync for MetadataKey<T>where
T: Sync,
impl<T> Unpin for MetadataKey<T>where
T: Unpin,
impl<T> UnwindSafe for MetadataKey<T>where
T: UnwindSafe,
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
§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self
file descriptor.