[−][src]Struct opentimestamps::ser::Serializer
Standard serializer for OTS info files
Methods
impl<W: Write> Serializer<W>
[src]
pub fn new(writer: W) -> Serializer<W>
[src]
Constructs a new deserializer from a reader
pub fn into_inner(self) -> W
[src]
Extracts the underlying writer from the serializer
pub fn write_magic(&mut self) -> Result<(), Error>
[src]
Writes the magic bytes
pub fn write_version(&mut self) -> Result<(), Error>
[src]
Writes the major version
pub fn write_byte(&mut self, byte: u8) -> Result<(), Error>
[src]
Writes a single byte to the writer
pub fn write_uint(&mut self, n: usize) -> Result<(), Error>
[src]
Write an unsigned integer
pub fn write_fixed_bytes(&mut self, data: &[u8]) -> Result<(), Error>
[src]
Write a fixed number of bytes
pub fn write_bytes(&mut self, data: &[u8]) -> Result<(), Error>
[src]
Write a variable number of bytes
Auto Trait Implementations
impl<W> Unpin for Serializer<W> where
W: Unpin,
W: Unpin,
impl<W> Sync for Serializer<W> where
W: Sync,
W: Sync,
impl<W> Send for Serializer<W> where
W: Send,
W: Send,
impl<W> UnwindSafe for Serializer<W> where
W: UnwindSafe,
W: UnwindSafe,
impl<W> RefUnwindSafe for Serializer<W> where
W: RefUnwindSafe,
W: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,