pub struct SetState { /* private fields */ }
Expand description
Native implementation for SetState
Implementations§
source§impl SetState
impl SetState
pub fn new(state_writes: Vec<BytesEntry>) -> Self
pub fn state_writes(&self) -> &[BytesEntry]
Trait Implementations§
source§impl FromBytes<SetState> for SetState
impl FromBytes<SetState> for SetState
fn from_bytes(bytes: &[u8]) -> Result<SetState, ProtoConversionError>
source§impl FromNative<SetState> for SetState
impl FromNative<SetState> for SetState
fn from_native(set_state: SetState) -> Result<Self, ProtoConversionError>
source§impl FromProto<SetState> for SetState
impl FromProto<SetState> for SetState
fn from_proto(set_state: SetState) -> Result<Self, ProtoConversionError>
source§impl IntoBytes for SetState
impl IntoBytes for SetState
fn into_bytes(self) -> Result<Vec<u8>, ProtoConversionError>
source§impl IntoNative<SetState> for SetState
impl IntoNative<SetState> for SetState
fn into_native(self) -> Result<T, ProtoConversionError>
source§impl IntoProto<SetState> for SetState
impl IntoProto<SetState> for SetState
fn into_proto(self) -> Result<T, ProtoConversionError>
Auto Trait Implementations§
impl RefUnwindSafe for SetState
impl Send for SetState
impl Sync for SetState
impl Unpin for SetState
impl UnwindSafe for SetState
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
§impl<'a, T> DefaultFeatures<'a> for T
impl<'a, T> DefaultFeatures<'a> for T
§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.§fn self_address_mut(&mut self) -> *mut ()
fn self_address_mut(&mut self) -> *mut ()
Returns the address of
self
. Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.§fn self_address_mut(&mut self) -> *mut ()
fn self_address_mut(&mut self) -> *mut ()
Returns the address of
self
. Read more§impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
§fn borrow_replacement(ptr: &T) -> &T
fn borrow_replacement(ptr: &T) -> &T
Given
ptr
, which was obtained from a prior call to Self::borrow()
,
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self
. Read more