pub struct RcWeakCodec<T, C, const NULLABLE: bool, const TRACK_REF: bool>(/* private fields */);Trait Implementations§
Source§impl<T, C, const NULLABLE: bool, const TRACK_REF: bool> Serializer for RcWeakCodec<T, C, NULLABLE, TRACK_REF>where
T: 'static,
C: Serializer<Target = T>,
impl<T, C, const NULLABLE: bool, const TRACK_REF: bool> Serializer for RcWeakCodec<T, C, NULLABLE, TRACK_REF>where
T: 'static,
C: Serializer<Target = T>,
type Target = RcWeak<T>
Source§fn write_data(_: &RcWeak<T>, _: &mut WriteContext<'_>) -> Result<(), Error>
fn write_data(_: &RcWeak<T>, _: &mut WriteContext<'_>) -> Result<(), Error>
Write the target body only.
Source§fn default_value(context: &mut ReadContext<'_>) -> Result<RcWeak<T>, Error>
fn default_value(context: &mut ReadContext<'_>) -> Result<RcWeak<T>, Error>
Construct a target for a null or missing local value.
Source§fn read_arc_any(
context: &mut ReadContext<'_>,
) -> Result<Arc<dyn Any + Send + Sync>, Error>
fn read_arc_any( context: &mut ReadContext<'_>, ) -> Result<Arc<dyn Any + Send + Sync>, Error>
Read directly into the final owner for sync dynamic carriers.
Auto Trait Implementations§
impl<T, C, const NULLABLE: bool, const TRACK_REF: bool> Freeze for RcWeakCodec<T, C, NULLABLE, TRACK_REF>
impl<T, C, const NULLABLE: bool, const TRACK_REF: bool> RefUnwindSafe for RcWeakCodec<T, C, NULLABLE, TRACK_REF>where
T: RefUnwindSafe,
C: RefUnwindSafe,
impl<T, C, const NULLABLE: bool, const TRACK_REF: bool> Send for RcWeakCodec<T, C, NULLABLE, TRACK_REF>
impl<T, C, const NULLABLE: bool, const TRACK_REF: bool> Sync for RcWeakCodec<T, C, NULLABLE, TRACK_REF>
impl<T, C, const NULLABLE: bool, const TRACK_REF: bool> Unpin for RcWeakCodec<T, C, NULLABLE, TRACK_REF>
impl<T, C, const NULLABLE: bool, const TRACK_REF: bool> UnsafeUnpin for RcWeakCodec<T, C, NULLABLE, TRACK_REF>
impl<T, C, const NULLABLE: bool, const TRACK_REF: bool> UnwindSafe for RcWeakCodec<T, C, NULLABLE, TRACK_REF>where
T: UnwindSafe,
C: 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