[][src]Struct d4_framefile::Stream

pub struct Stream<'a, Mode: AccessMode, T: 'a> { /* fields omitted */ }

Implementations

impl<'a, M: AccessMode, T: 'a> Stream<'a, M, T>[src]

pub fn double_frame_size(&mut self, limit: usize)[src]

pub fn get_frame_capacity(&self) -> usize[src]

impl<M: CanWrite<T>, T: Write + Seek, '_> Stream<'_, M, T>[src]

pub fn flush(&mut self) -> Result<()>[src]

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

pub fn disable_pre_alloc(&mut self)[src]

pub fn write_frame(&mut self, buffer: &[u8]) -> Result<()>[src]

pub fn write_with_alloc_callback<R: FnMut(&mut Self)>(
    &mut self,
    buffer: &[u8],
    callback: R
) -> Result<usize>
[src]

Append data to the given stream. Similar to write, but this allows to inject a callback function, which you can modify the configuration of the stream before the stream actually synced to the file.

impl<M: CanRead<T>, T: Read + Seek, '_> Stream<'_, M, T>[src]

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

Trait Implementations

impl<M: AccessMode, T, '_> Drop for Stream<'_, M, T>[src]

Auto Trait Implementations

impl<'a, Mode, T> !RefUnwindSafe for Stream<'a, Mode, T>

impl<'a, Mode, T> Send for Stream<'a, Mode, T> where
    Mode: Send,
    T: Send

impl<'a, Mode, T> Sync for Stream<'a, Mode, T> where
    Mode: Sync,
    T: Send

impl<'a, Mode, T> Unpin for Stream<'a, Mode, T> where
    Mode: Unpin

impl<'a, Mode, T> !UnwindSafe for Stream<'a, Mode, T>

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.