Enum SpooledData

pub enum SpooledData

A wrapper for the two states of a SpooledTempFile. Either:

  1. An in-memory Cursor representing the state of the file.
  2. A temporary File.

Variants

InMemory(Cursor<Vec<u8>>)
OnDisk(File)

Trait Implementations

impl Debug for SpooledData

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl Freeze for SpooledData

impl RefUnwindSafe for SpooledData

impl Send for SpooledData

impl Sync for SpooledData

impl Unpin for SpooledData

impl UnsafeUnpin for SpooledData

impl UnwindSafe for SpooledData

Blanket Implementations

impl<T> Any for SpooledData where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for SpooledData where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for SpooledData where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for SpooledData

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for SpooledData where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for SpooledData where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for SpooledData where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>