pub enum Event {
UpgradeTls,
Ready,
Sent {
token: u64,
info: SendInfo,
},
BodyReady {
token: u64,
},
Failed {
token: Option<u64>,
error: Error,
envelope: Option<Envelope>,
accepted: Vec<String>,
rejected: Vec<Rejection>,
},
Reset,
CloseTransport,
Closed,
}Variants§
UpgradeTls
Ready
Sent
BodyReady
A streamed message’s DATA was accepted (354): write its content with
Connection::send_chunk and end it with Connection::finish_body.
Failed
Fields
Reset
CloseTransport
Closed
Trait Implementations§
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Forget for Event
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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