[][src]Struct hold::blob::Blob

pub struct Blob { /* fields omitted */ }

A blob is an object that can be stored onto a provider

Implementations

impl Blob[src]

pub fn new<K: ToString, S: Stream<Item = Result<Bytes, Error>> + Send + Sync + 'static>(
    key: K,
    size: usize,
    stream: S
) -> Self
[src]

pub fn from_bytes<K: ToString>(key: K, content: Vec<u8>) -> Self[src]

pub fn empty<K: ToString>(key: K, size: usize) -> Self[src]

pub fn key(&self) -> &str[src]

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

pub fn into_byte_stream(self) -> impl Stream<Item = Result<Bytes, Error>>[src]

Trait Implementations

impl Debug for Blob[src]

Auto Trait Implementations

impl !RefUnwindSafe for Blob

impl Send for Blob

impl Sync for Blob

impl Unpin for Blob

impl !UnwindSafe for Blob

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.