Struct bincode::config::WithOtherTrailing [−][src]
A configuration struct with a user-specified trailing bytes behavior.
Auto Trait Implementations
impl<O, T> RefUnwindSafe for WithOtherTrailing<O, T> where
O: RefUnwindSafe,
T: RefUnwindSafe,
O: RefUnwindSafe,
T: RefUnwindSafe,
impl<O, T> Send for WithOtherTrailing<O, T> where
O: Send,
T: Send,
O: Send,
T: Send,
impl<O, T> Sync for WithOtherTrailing<O, T> where
O: Sync,
T: Sync,
O: Sync,
T: Sync,
impl<O, T> Unpin for WithOtherTrailing<O, T> where
O: Unpin,
T: Unpin,
O: Unpin,
T: Unpin,
impl<O, T> UnwindSafe for WithOtherTrailing<O, T> where
O: UnwindSafe,
T: UnwindSafe,
O: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Options for T where
T: InternalOptions,
[src]
T: InternalOptions,
fn with_no_limit(self) -> WithOtherLimit<Self, Infinite>
[src]
fn with_limit(self, limit: u64) -> WithOtherLimit<Self, Bounded>
[src]
fn with_little_endian(self) -> WithOtherEndian<Self, LittleEndian>
[src]
fn with_big_endian(self) -> WithOtherEndian<Self, BigEndian>
[src]
fn with_native_endian(self) -> WithOtherEndian<Self, NativeEndian>
[src]
fn with_varint_encoding(self) -> WithOtherIntEncoding<Self, VarintEncoding>
[src]
fn with_fixint_encoding(self) -> WithOtherIntEncoding<Self, FixintEncoding>
[src]
fn reject_trailing_bytes(self) -> WithOtherTrailing<Self, RejectTrailing>
[src]
fn allow_trailing_bytes(self) -> WithOtherTrailing<Self, AllowTrailing>
[src]
fn serialize<S: ?Sized + Serialize>(self, t: &S) -> Result<Vec<u8>>
[src]
fn serialized_size<T: ?Sized + Serialize>(self, t: &T) -> Result<u64>
[src]
fn serialize_into<W: Write, T: ?Sized + Serialize>(
self,
w: W,
t: &T
) -> Result<()>
[src]
self,
w: W,
t: &T
) -> Result<()>
fn deserialize<'a, T: Deserialize<'a>>(self, bytes: &'a [u8]) -> Result<T>
[src]
fn deserialize_seed<'a, T: DeserializeSeed<'a>>(
self,
seed: T,
bytes: &'a [u8]
) -> Result<T::Value>
[src]
self,
seed: T,
bytes: &'a [u8]
) -> Result<T::Value>
fn deserialize_from<R: Read, T: DeserializeOwned>(self, reader: R) -> Result<T>
[src]
fn deserialize_from_seed<'a, R: Read, T: DeserializeSeed<'a>>(
self,
seed: T,
reader: R
) -> Result<T::Value>
[src]
self,
seed: T,
reader: R
) -> Result<T::Value>
fn deserialize_from_custom<'a, R: BincodeRead<'a>, T: DeserializeOwned>(
self,
reader: R
) -> Result<T>
[src]
self,
reader: R
) -> Result<T>
fn deserialize_from_custom_seed<'a, R: BincodeRead<'a>, T: DeserializeSeed<'a>>(
self,
seed: T,
reader: R
) -> Result<T::Value>
[src]
self,
seed: T,
reader: R
) -> Result<T::Value>
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,