pub enum Response<'a> {
Status(StatusResponse<'a>),
Data(DataResponse<'a>),
Continue(ContinueReq<'a>),
}Expand description
A single parsed server response line.
Variants§
Status(StatusResponse<'a>)
A status response (OK, NO, BAD, PREAUTH, BYE), tagged or untagged.
Data(DataResponse<'a>)
An untagged data response (CAPABILITY, LIST, FETCH, …).
Continue(ContinueReq<'a>)
A command-continuation request (+ …).
Trait Implementations§
Source§impl<'a> PartialEq for Response<'a>
impl<'a> PartialEq for Response<'a>
impl<'a> Eq for Response<'a>
impl<'a> StructuralPartialEq for Response<'a>
Auto Trait Implementations§
impl<'a> Freeze for Response<'a>
impl<'a> RefUnwindSafe for Response<'a>
impl<'a> Send for Response<'a>
impl<'a> Sync for Response<'a>
impl<'a> Unpin for Response<'a>
impl<'a> UnsafeUnpin for Response<'a>
impl<'a> UnwindSafe for Response<'a>
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