pub struct Typedesc { /* private fields */ }Implementations§
Source§impl Typedesc
impl Typedesc
pub fn id(&self) -> &Uuid
pub fn descriptors(&self) -> &[Descriptor]
pub fn root_pos(&self) -> Option<TypePos>
pub fn build_codec(&self) -> Result<Arc<dyn Codec>, CodecError>
pub fn get(&self, type_pos: TypePos) -> Result<&Descriptor, CodecError>
pub fn nothing(protocol: &ProtocolVersion) -> Typedesc
pub fn is_empty_tuple(&self) -> bool
pub fn root(&self) -> Option<&Descriptor>
pub fn as_query_arg_context(&self) -> DescriptorContext<'_>
pub fn as_queryable_context(&self) -> DescriptorContext<'_>
pub fn serialize_state(&self, state: &StateBorrow<'_>) -> Result<State, Error>
pub fn proto(&self) -> &ProtocolVersion
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Typedesc
impl RefUnwindSafe for Typedesc
impl Send for Typedesc
impl Sync for Typedesc
impl Unpin for Typedesc
impl UnwindSafe for Typedesc
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
Source§impl<T> EncoderForExt for Twhere
T: ?Sized,
impl<T> EncoderForExt for Twhere
T: ?Sized,
Source§fn to_vec<F>(&self) -> Vec<u8> ⓘwhere
F: 'static,
Self: EncoderFor<F>,
fn to_vec<F>(&self) -> Vec<u8> ⓘwhere
F: 'static,
Self: EncoderFor<F>,
Convert this builder into a vector of bytes. This is generally
not the most efficient way to perform serialization.
Source§fn encode_buffer<F>(&self, buf: &mut [u8]) -> Result<usize, usize>where
F: 'static,
Self: EncoderFor<F>,
fn encode_buffer<F>(&self, buf: &mut [u8]) -> Result<usize, usize>where
F: 'static,
Self: EncoderFor<F>,
Encode this builder into a given buffer. If the buffer is
too small, the function will return the number of bytes
required to encode the builder.
Source§fn encode_buffer_uninit<'a, F>(
&self,
buf: &'a mut [MaybeUninit<u8>],
) -> Result<&'a mut [u8], usize>where
F: 'static,
Self: EncoderFor<F>,
fn encode_buffer_uninit<'a, F>(
&self,
buf: &'a mut [MaybeUninit<u8>],
) -> Result<&'a mut [u8], usize>where
F: 'static,
Self: EncoderFor<F>,
Encode this builder into a given buffer. If the buffer is
too small, the function will return the number of bytes
required to encode the builder.