[][src]Struct xp3::writer::EntryWriter

pub struct EntryWriter<'a, T: Write + Seek> { /* fields omitted */ }

Implementations

impl<'a, T: Write + Seek> EntryWriter<'a, T>[src]

pub fn new(
    writer: &'a mut XP3Writer<T>,
    protection: IndexInfoFlag,
    name: String,
    timestamp: Option<u64>
) -> Self
[src]

pub fn default_flag(&self) -> IndexSegmentFlag[src]

pub fn set_default_flag(&mut self, flag: IndexSegmentFlag)[src]

pub fn write_segment(
    &mut self,
    flag: IndexSegmentFlag,
    data: &[u8]
) -> Result<u64, Error>
[src]

Write one segment from stream. Returns write size.

pub fn write_default_segment(&mut self, data: &[u8]) -> Result<u64, Error>[src]

Write with default flag

pub fn finish(self)[src]

Finish file entry

Trait Implementations

impl<'a, T: Write + Seek> Drop for EntryWriter<'a, T>[src]

Preventing creating more entry before previous entry finish.

impl<'a, T: Write + Seek> Write for EntryWriter<'a, T>[src]

pub fn write(&mut self, buf: &[u8]) -> Result<usize>[src]

Write with default flag

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for EntryWriter<'a, T> where
    T: RefUnwindSafe
[src]

impl<'a, T> Send for EntryWriter<'a, T> where
    T: Send
[src]

impl<'a, T> Sync for EntryWriter<'a, T> where
    T: Sync
[src]

impl<'a, T> Unpin for EntryWriter<'a, T>[src]

impl<'a, T> !UnwindSafe for EntryWriter<'a, T>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<W> WriteBytesExt for W where
    W: Write + ?Sized
[src]