Struct bincode::config::WithOtherTrailing [−][src]
pub struct WithOtherTrailing<O: Options, T: TrailingBytes> { /* fields omitted */ }
Expand description
A configuration struct with a user-specified trailing bytes behavior.
Trait Implementations
Auto Trait Implementations
impl<O, T> RefUnwindSafe for WithOtherTrailing<O, T> where
O: RefUnwindSafe,
T: RefUnwindSafe,
impl<O, T> Send for WithOtherTrailing<O, T> where
O: Send,
T: Send,
impl<O, T> Sync for WithOtherTrailing<O, T> where
O: Sync,
T: Sync,
impl<O, T> Unpin for WithOtherTrailing<O, T> where
O: Unpin,
T: Unpin,
impl<O, T> UnwindSafe for WithOtherTrailing<O, T> where
O: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Sets the byte limit to be unlimited. This is the default. Read more
Sets the byte limit to limit
.
Sets the endianness to little-endian This is the default. Read more
Sets the endianness to big-endian
Sets the endianness to the the machine-native endianness
Sets the length encoding to varint
Sets the length encoding to be fixed
Sets the deserializer to reject trailing bytes
Sets the deserializer to allow trailing bytes
Serializes a serializable object into a Vec
of bytes using this configuration
Returns the size that an object would be if serialized using Bincode with this configuration
Serializes an object directly into a Writer
using this configuration Read more
Deserializes a slice of bytes into an instance of T
using this configuration
fn deserialize_seed<'a, T: DeserializeSeed<'a>>(
self,
seed: T,
bytes: &'a [u8]
) -> Result<T::Value>
[src]
fn deserialize_seed<'a, T: DeserializeSeed<'a>>(
self,
seed: T,
bytes: &'a [u8]
) -> Result<T::Value>
[src]Deserializes a slice of bytes with state seed
using this configuration.
Deserializes an object directly from a Read
er using this configuration Read more
fn deserialize_from_seed<'a, R: Read, T: DeserializeSeed<'a>>(
self,
seed: T,
reader: R
) -> Result<T::Value>
[src]
fn deserialize_from_seed<'a, R: Read, T: DeserializeSeed<'a>>(
self,
seed: T,
reader: R
) -> Result<T::Value>
[src]Deserializes an object directly from a Read
er with state seed
using this configuration Read more
fn deserialize_from_custom<'a, R: BincodeRead<'a>, T: DeserializeOwned>(
self,
reader: R
) -> Result<T>
[src]
fn deserialize_from_custom<'a, R: BincodeRead<'a>, T: DeserializeOwned>(
self,
reader: R
) -> Result<T>
[src]Deserializes an object from a custom BincodeRead
er using the default configuration.
It is highly recommended to use deserialize_from
unless you need to implement
BincodeRead
for performance reasons. Read more
fn deserialize_from_custom_seed<'a, R: BincodeRead<'a>, T: DeserializeSeed<'a>>(
self,
seed: T,
reader: R
) -> Result<T::Value>
[src]
fn deserialize_from_custom_seed<'a, R: BincodeRead<'a>, T: DeserializeSeed<'a>>(
self,
seed: T,
reader: R
) -> Result<T::Value>
[src]Deserializes an object from a custom BincodeRead
er with state seed
using the default
configuration. It is highly recommended to use deserialize_from
unless you need to
implement BincodeRead
for performance reasons. Read more