Enum mail_core::context::MaybeEncData
source · Expand description
Represents Data which might already have been transfer encoded.
Variants
Data(Data)
The data is returned normally.
EncData(EncData)
The data is returned in a already transfer encoded variant.
Implementations
sourceimpl MaybeEncData
impl MaybeEncData
pub fn to_resource(self) -> Resource
pub fn encode(
self,
ctx: &impl Context
) -> impl Future<Item = EncData, Error = ResourceLoadingError>
Auto Trait Implementations
impl RefUnwindSafe for MaybeEncData
impl Send for MaybeEncData
impl Sync for MaybeEncData
impl Unpin for MaybeEncData
impl UnwindSafe for MaybeEncData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more