Struct bincode::config::WithOtherEndian [−][src]
pub struct WithOtherEndian<O: Options, E: BincodeByteOrder> { /* fields omitted */ }
Expand description
A configuration struct with a user-specified endian order
Trait Implementations
Auto Trait Implementations
impl<O, E> RefUnwindSafe for WithOtherEndian<O, E> where
E: RefUnwindSafe,
O: RefUnwindSafe,
impl<O, E> Send for WithOtherEndian<O, E> where
E: Send,
O: Send,
impl<O, E> Sync for WithOtherEndian<O, E> where
E: Sync,
O: Sync,
impl<O, E> Unpin for WithOtherEndian<O, E> where
E: Unpin,
O: Unpin,
impl<O, E> UnwindSafe for WithOtherEndian<O, E> where
E: UnwindSafe,
O: 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