pub enum OwnedFieldValue {
Str(String),
U64(u64),
I64(i64),
Bool(bool),
Opaque(Arc<dyn Any + Send + Sync>),
}Expand description
Owned counterpart of FieldValue used when delivering a routed input
across the consumer-surface boundary. Moving owned values means the
consumer can construct its typed input without re-borrowing the
producer.
Variants§
Trait Implementations§
Source§impl Clone for OwnedFieldValue
impl Clone for OwnedFieldValue
Source§fn clone(&self) -> OwnedFieldValue
fn clone(&self) -> OwnedFieldValue
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 moreAuto Trait Implementations§
impl Freeze for OwnedFieldValue
impl !RefUnwindSafe for OwnedFieldValue
impl Send for OwnedFieldValue
impl Sync for OwnedFieldValue
impl Unpin for OwnedFieldValue
impl UnsafeUnpin for OwnedFieldValue
impl !UnwindSafe for OwnedFieldValue
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