Struct noosphere_core::context::SphereFile
source · pub struct SphereFile<C> {
pub sphere_identity: Did,
pub sphere_version: Link<MemoIpld>,
pub memo_version: Link<MemoIpld>,
pub memo: MemoIpld,
pub contents: C,
}
Expand description
A descriptor for contents that is stored in a sphere.
Fields§
§sphere_identity: Did
The identity of the associated sphere from which the file was read
sphere_version: Link<MemoIpld>
The version of the associated sphere from which the file was read
memo_version: Link<MemoIpld>
The version of the memo that wraps the file’s body contents
memo: MemoIpld
The memo that wraps the file’s body contents
contents: C
The body contents of the file
Implementations§
source§impl<C> SphereFile<C>where
C: AsyncFileBody + 'static,
impl<C> SphereFile<C>where
C: AsyncFileBody + 'static,
sourcepub fn boxed(self) -> SphereFile<Pin<Box<dyn AsyncFileBody + 'static>>>
pub fn boxed(self) -> SphereFile<Pin<Box<dyn AsyncFileBody + 'static>>>
Consume the file and return a version of it where its body contents have been boxed and pinned
Auto Trait Implementations§
impl<C> RefUnwindSafe for SphereFile<C>where
C: RefUnwindSafe,
impl<C> Send for SphereFile<C>where
C: Send,
impl<C> Sync for SphereFile<C>where
C: Sync,
impl<C> Unpin for SphereFile<C>where
C: Unpin,
impl<C> UnwindSafe for SphereFile<C>where
C: UnwindSafe,
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