Struct astral::thirdparty::slog::OwnedKV
pub struct OwnedKV<T>(_)
where
T: SendSyncRefUnwindSafeKV + ?Sized;
Expand description
Owned KV
“Owned” means that the contained data (key-value pairs) can belong
to a Logger
and thus must be thread-safe ('static
, Send
, Sync
)
Zero, one or more owned key-value pairs.
Can be constructed with o!
macro.
Trait Implementations
impl<T> From<OwnedKV<T>> for OwnedKVListwhere
T: 'static + SendSyncRefUnwindSafeKV,
impl<T> From<OwnedKV<T>> for OwnedKVListwhere
T: 'static + SendSyncRefUnwindSafeKV,
fn from(from: OwnedKV<T>) -> OwnedKVList
fn from(from: OwnedKV<T>) -> OwnedKVList
Converts to this type from the input type.
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for OwnedKV<T>
impl<T: ?Sized> Send for OwnedKV<T>
impl<T: ?Sized> Sync for OwnedKV<T>
impl<T: ?Sized> Unpin for OwnedKV<T>where
T: Unpin,
impl<T: ?Sized> UnwindSafe for OwnedKV<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more