pub struct PsqlClientRef<'a> { /* private fields */ }Trait Implementations§
Source§impl<'a> Clone for PsqlClientRef<'a>
impl<'a> Clone for PsqlClientRef<'a>
Source§fn clone(&self) -> PsqlClientRef<'a>
fn clone(&self) -> PsqlClientRef<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for PsqlClientRef<'a>
impl<'a> Debug for PsqlClientRef<'a>
Source§impl From<&PsqlClientRef<'_>> for PsqlClient
impl From<&PsqlClientRef<'_>> for PsqlClient
Source§fn from(r: &PsqlClientRef<'_>) -> Self
fn from(r: &PsqlClientRef<'_>) -> Self
Converts to this type from the input type.
Source§impl From<PsqlClientRef<'_>> for PsqlClient
impl From<PsqlClientRef<'_>> for PsqlClient
Source§fn from(value: PsqlClientRef<'_>) -> Self
fn from(value: PsqlClientRef<'_>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<PsqlClientRef<'a>> for &'a [u8]
impl<'a> From<PsqlClientRef<'a>> for &'a [u8]
Source§fn from(value: PsqlClientRef<'a>) -> Self
fn from(value: PsqlClientRef<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> FromBytesRef<'a> for PsqlClientRef<'a>
impl<'a> FromBytesRef<'a> for PsqlClientRef<'a>
Source§fn from_bytes_unchecked(_bytes: &'a [u8]) -> Self
fn from_bytes_unchecked(_bytes: &'a [u8]) -> Self
Source§fn from_bytes(bytes: &'a [u8]) -> Result<Self, ValidationError>
fn from_bytes(bytes: &'a [u8]) -> Result<Self, ValidationError>
Converts a slice of bytes into a
LayerRef type, returning an error if the bytes would
not form a valid layer.Source§impl<'a> IndexLayerRef<'a> for PsqlClientRef<'a>
impl<'a> IndexLayerRef<'a> for PsqlClientRef<'a>
Source§fn get_layer<T: LayerRef<'a> + FromBytesRef<'a>>(&'a self) -> Option<T>
fn get_layer<T: LayerRef<'a> + FromBytesRef<'a>>(&'a self) -> Option<T>
Retrieves a reference to the first sublayer of type
T, if such a sublayer exists. Read moreSource§fn get_nth_layer<T: LayerRef<'a> + FromBytesRef<'a> + BaseLayerMetadata>(
&'a self,
n: usize,
) -> Option<T>
fn get_nth_layer<T: LayerRef<'a> + FromBytesRef<'a> + BaseLayerMetadata>( &'a self, n: usize, ) -> Option<T>
Source§fn index_layer<T: LayerRef<'a> + FromBytesRef<'a> + BaseLayerMetadata>(
&'a self,
) -> T
fn index_layer<T: LayerRef<'a> + FromBytesRef<'a> + BaseLayerMetadata>( &'a self, ) -> T
Retrieves a reference to the first sublayer of type
T. Read moreSource§fn index_nth_layer<T: LayerRef<'a> + FromBytesRef<'a> + BaseLayerMetadata>(
&'a self,
n: usize,
) -> T
fn index_nth_layer<T: LayerRef<'a> + FromBytesRef<'a> + BaseLayerMetadata>( &'a self, n: usize, ) -> T
Source§impl LayerIdentifier for PsqlClientRef<'_>
impl LayerIdentifier for PsqlClientRef<'_>
Source§impl LayerLength for PsqlClientRef<'_>
impl LayerLength for PsqlClientRef<'_>
Source§impl<'a> LayerObjectMetadata for PsqlClientRef<'a>
impl<'a> LayerObjectMetadata for PsqlClientRef<'a>
Source§fn layer_metadata(&self) -> &dyn LayerMetadata
fn layer_metadata(&self) -> &dyn LayerMetadata
Static metadata associated with the given layer. This method is normally only used
internally or when defining a custom
Layer type.Source§impl<'a> LayerObjectName for PsqlClientRef<'a>
impl<'a> LayerObjectName for PsqlClientRef<'a>
Source§fn layer_name(&self) -> &'static str
fn layer_name(&self) -> &'static str
The name of the layer, usually (though not guaranteed to be) the same as the name of the
struct. Read more
Source§impl<'a> LayerOffset for PsqlClientRef<'a>
impl<'a> LayerOffset for PsqlClientRef<'a>
Source§impl<'a> ToBoxedLayer for PsqlClientRef<'a>
Available on crate feature alloc only.
impl<'a> ToBoxedLayer for PsqlClientRef<'a>
Available on crate feature
alloc only.Source§fn to_boxed_layer(&self) -> Box<dyn LayerObject>
fn to_boxed_layer(&self) -> Box<dyn LayerObject>
Clone the given instance in a
Box and return it as a dyn Layer type.Source§impl ToLayer for PsqlClientRef<'_>
Available on crate feature alloc only.
impl ToLayer for PsqlClientRef<'_>
Available on crate feature
alloc only.Source§impl<'a> Validate for PsqlClientRef<'a>
impl<'a> Validate for PsqlClientRef<'a>
impl<'a> Copy for PsqlClientRef<'a>
impl<'a> LayerRef<'a> for PsqlClientRef<'a>
impl<'a> StatelessLayer for PsqlClientRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for PsqlClientRef<'a>
impl<'a> RefUnwindSafe for PsqlClientRef<'a>
impl<'a> Send for PsqlClientRef<'a>
impl<'a> Sync for PsqlClientRef<'a>
impl<'a> Unpin for PsqlClientRef<'a>
impl<'a> UnwindSafe for PsqlClientRef<'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