Struct dittolive_ditto::store::ditto_attachment::DittoAttachment
source · [−]pub struct DittoAttachment { /* private fields */ }
Implementations
sourceimpl DittoAttachment
impl DittoAttachment
pub fn new(
id: Box<[u8]>,
len: u64,
metadata: HashMap<String, String>,
ditto: Arc<BoxedDitto>,
attachment_handle: BoxedAttachmentHandle
) -> Self
pub fn new_with_token(
token: DittoAttachmentToken,
ditto: Arc<BoxedDitto>,
attachment_handle: BoxedAttachmentHandle
) -> Self
pub fn path(&self) -> PathBuf
Trait Implementations
sourceimpl Debug for DittoAttachment
impl Debug for DittoAttachment
sourceimpl Serialize for DittoAttachment
impl Serialize for DittoAttachment
Auto Trait Implementations
impl RefUnwindSafe for DittoAttachment
impl Send for DittoAttachment
impl Sync for DittoAttachment
impl Unpin for DittoAttachment
impl UnwindSafe for DittoAttachment
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more