pub struct ImapSendOutput<T: Encoder> {
pub message: T::Message<'static>,
pub data: Vec<Data<'static>>,
pub untagged: Vec<StatusBody<'static>>,
pub tagged: Option<Tagged<'static>>,
pub bye: Option<Bye<'static>>,
pub continuation_request: Option<CommandContinuationRequest<'static>>,
}Expand description
Successful output of one command exchange: the echoed message plus everything the server answered before the tagged response.
Fields§
§message: T::Message<'static>The sent message, echoed back to the caller.
data: Vec<Data<'static>>The untagged data responses collected during the exchange.
untagged: Vec<StatusBody<'static>>The untagged status responses collected during the exchange.
tagged: Option<Tagged<'static>>The tagged response terminating the exchange, when one arrived.
bye: Option<Bye<'static>>The BYE response, when the server closed the session instead.
continuation_request: Option<CommandContinuationRequest<'static>>The continuation request that paused the exchange, when the server asked for more data.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ImapSendOutput<T>
impl<T> RefUnwindSafe for ImapSendOutput<T>
impl<T> Send for ImapSendOutput<T>
impl<T> Sync for ImapSendOutput<T>
impl<T> Unpin for ImapSendOutput<T>
impl<T> UnsafeUnpin for ImapSendOutput<T>
impl<T> UnwindSafe for ImapSendOutput<T>
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