pub struct ReceivedResourceFile {
pub original_hash: [u8; 32],
pub size: u64,
pub metadata: Option<Vec<u8>>,
/* private fields */
}Expand description
A received disk-backed Resource.
The temporary file is removed when this value is dropped unless ownership
is transferred with ReceivedResourceFile::persist.
Fields§
§original_hash: [u8; 32]§size: u64§metadata: Option<Vec<u8>>Implementations§
Trait Implementations§
Source§impl Debug for ReceivedResourceFile
impl Debug for ReceivedResourceFile
Source§impl Drop for ReceivedResourceFile
impl Drop for ReceivedResourceFile
Auto Trait Implementations§
impl Freeze for ReceivedResourceFile
impl RefUnwindSafe for ReceivedResourceFile
impl Send for ReceivedResourceFile
impl Sync for ReceivedResourceFile
impl Unpin for ReceivedResourceFile
impl UnsafeUnpin for ReceivedResourceFile
impl UnwindSafe for ReceivedResourceFile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more