[−][src]Struct mail_core::EncData
EncData
is like Data
but the buffer contains transfer encoded data.
Clone
Data
is made to be cheap to clone and share.
For this it uses Arc
internally.
Methods
impl EncData
[src]
pub fn transfer_encoded_buffer(&self) -> &Arc<[u8]>
[src]
Access the raw transfer encoded data.
pub fn metadata(&self) -> &Arc<Metadata>
[src]
Access the metadata.
pub fn file_meta(&self) -> &FileMeta
[src]
Access the file meta metadata.Fn
pub fn media_type(&self) -> &MediaType
[src]
Access the content type.
pub fn encoding(&self) -> TransferEncoding
[src]
Access the transfer encoding used to encode the buffer.
pub fn content_id(&self) -> &ContentId
[src]
Access the content id.
The content id is for the data itself so it should not change just because the data had been transfer encoded.
Note about fixed newlines:
The encoding functions of this library will always "fix" line endings even if the transfer encoding is to not have any encoding, it could be said that this is a modification of the data and as such the content id should change. But as this is done always and as such only the transfer encoded data is "send" out this works out fine.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for EncData
impl Send for EncData
impl Sync for EncData
impl Unpin for EncData
impl UnwindSafe for EncData
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> Erased for T
[src]
impl<T> From<T> for T
[src]
impl<T> HeaderTryFrom<T> for T
[src]
fn try_from(val: T) -> Result<T, ComponentCreationError>
[src]
impl<F, T> HeaderTryInto<T> for F where
T: HeaderTryFrom<F>,
[src]
T: HeaderTryFrom<F>,
fn try_into(self) -> Result<T, ComponentCreationError>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,