[][src]Struct xp3::writer::XP3Writer

pub struct XP3Writer<T: Write + Seek> { /* fields omitted */ }

Implementations

impl<T: Write + Seek> XP3Writer<T>[src]

pub fn start(
    stream: T,
    version: XP3HeaderVersion,
    index_compression: XP3IndexCompression
) -> Result<Self, XP3Error>
[src]

Start new XP3 file writing

pub fn append_extra_index(&mut self, index: XP3Index)[src]

pub fn current_pos(&mut self) -> u64[src]

pub fn enter_file(
    &mut self,
    protection: IndexInfoFlag,
    name: String,
    timestamp: Option<u64>
) -> EntryWriter<'_, T>

Notable traits for EntryWriter<'a, T>

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

Enter file entry start

pub fn finish(self) -> Result<(VirtualXP3, T), XP3Error>[src]

Append indexes and finish file

Auto Trait Implementations

impl<T> RefUnwindSafe for XP3Writer<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for XP3Writer<T> where
    T: Send
[src]

impl<T> Sync for XP3Writer<T> where
    T: Sync
[src]

impl<T> Unpin for XP3Writer<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for XP3Writer<T> where
    T: UnwindSafe
[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.