pub struct ConnectionParamBuilder<NAME = LString<'static>, VALUE = LString<'static>>{
pub name: NAME,
pub value: VALUE,
}
Fields§
§name: NAME
Parameter name.
value: VALUE
Parameter value.
Trait Implementations§
Source§impl<NAME, VALUE> BuilderFor for ConnectionParamBuilder<NAME, VALUE>
impl<NAME, VALUE> BuilderFor for ConnectionParamBuilder<NAME, VALUE>
type Message = ConnectionParam<'static>
Source§impl<NAME, VALUE> Debug for ConnectionParamBuilder<NAME, VALUE>
impl<NAME, VALUE> Debug for ConnectionParamBuilder<NAME, VALUE>
Source§impl<NAME, VALUE> Default for ConnectionParamBuilder<NAME, VALUE>
impl<NAME, VALUE> Default for ConnectionParamBuilder<NAME, VALUE>
Source§fn default() -> ConnectionParamBuilder<NAME, VALUE>
fn default() -> ConnectionParamBuilder<NAME, VALUE>
Returns the “default value” for a type. Read more
Source§impl<NAME, VALUE> EncoderFor<ConnectionParam<'static>> for &ConnectionParamBuilder<NAME, VALUE>
impl<NAME, VALUE> EncoderFor<ConnectionParam<'static>> for &ConnectionParamBuilder<NAME, VALUE>
fn encode_for(&self, buf: &mut BufWriter<'_>)
Source§impl<NAME, VALUE> EncoderFor<ConnectionParam<'static>> for ConnectionParamBuilder<NAME, VALUE>
impl<NAME, VALUE> EncoderFor<ConnectionParam<'static>> for ConnectionParamBuilder<NAME, VALUE>
fn encode_for(&self, buf: &mut BufWriter<'_>)
Auto Trait Implementations§
impl<NAME, VALUE> Freeze for ConnectionParamBuilder<NAME, VALUE>
impl<NAME, VALUE> RefUnwindSafe for ConnectionParamBuilder<NAME, VALUE>where
NAME: RefUnwindSafe,
VALUE: RefUnwindSafe,
impl<NAME, VALUE> Send for ConnectionParamBuilder<NAME, VALUE>
impl<NAME, VALUE> Sync for ConnectionParamBuilder<NAME, VALUE>
impl<NAME, VALUE> Unpin for ConnectionParamBuilder<NAME, VALUE>
impl<NAME, VALUE> UnwindSafe for ConnectionParamBuilder<NAME, VALUE>where
NAME: UnwindSafe,
VALUE: 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
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.