[−][src]Struct hold::blob::Blob
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]
key: K,
size: usize,
stream: S
) -> Self
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
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]
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,
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.
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>,