[−][src]Struct d4_framefile::Stream
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]
&mut self,
buffer: &[u8],
callback: R
) -> Result<usize>
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]
Trait Implementations
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,
Mode: Send,
T: Send,
impl<'a, Mode, T> Sync for Stream<'a, Mode, T> where
Mode: Sync,
T: Send,
Mode: Sync,
T: Send,
impl<'a, Mode, T> Unpin for Stream<'a, Mode, T> where
Mode: Unpin,
Mode: Unpin,
impl<'a, Mode, T> !UnwindSafe for Stream<'a, Mode, T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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.
pub 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>,