pub struct Sync<'a> { /* private fields */ }Expand description
Implementations§
Source§impl<'a> Sync<'a>
impl<'a> Sync<'a>
Trait Implementations§
Source§impl<'a> DataType for Sync<'a>
impl<'a> DataType for Sync<'a>
const META: StructFieldMeta
type BuilderForStruct<'unused> = SyncBuilder<'a>
Source§type BuilderForEncode = SyncBuilder<'a>
type BuilderForEncode = SyncBuilder<'a>
Always a reference
type DecodeLifetime<'__next_lifetime> = Sync<'__next_lifetime>
fn decode<'__next_lifetime>( buf: &mut &'__next_lifetime [u8], ) -> Result<Self::DecodeLifetime<'__next_lifetime>, ParseError>
fn encode<'__buffer_lifetime, '__value_lifetime>( buf: &mut BufWriter<'__buffer_lifetime>, value: &'__value_lifetime Self::BuilderForEncode, )
fn encode_usize<'a>(buf: &mut BufWriter<'a>, value: usize)
fn decode_usize<'a>(buf: &mut &'a [u8]) -> Result<usize, ParseError>
Source§impl<'a> StructMeta for Sync<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for Sync<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = Sync<'__struct>
fn new<'__next_lifetime>( buf: &'__next_lifetime [u8], ) -> Result<Self::Struct<'__next_lifetime>, ParseError>
fn to_vec(&self) -> Vec<u8> ⓘ
const FIELD_COUNT: usize = _
const IS_FIXED_SIZE: bool = _
const FIXED_SIZE: Option<usize> = _
const LENGTH_FIELD_INDEX: Option<usize> = _
const HAS_LENGTH_FIELD: bool = _
impl<'a> Copy for Sync<'a>
impl Eq for Sync<'_>
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for Sync<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFixedSize<{<$name<'_> as $crate::prelude::StructMeta>::IS_FIXED_SIZE}> for Sync<'_>
Implements a trait indicating that the struct has a fixed size. This needs to be a trait-generic rather than and associated constant for us to use elsewhere.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for Sync<'_>
Implements a trait indicating that the struct has a length field.
Auto Trait Implementations§
impl<'a> Freeze for Sync<'a>
impl<'a> RefUnwindSafe for Sync<'a>
impl<'a> Send for Sync<'a>
impl<'a> Sync for Sync<'a>
impl<'a> Unpin for Sync<'a>
impl<'a> UnwindSafe for Sync<'a>
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