pub enum Outcome {
Final(SmbResponse),
Interim {
parked: IoContext<Pending, Bare>,
interim: SmbResponse,
},
Silent,
}Expand description
The result of serving one accepted request. Encodes the final-vs-interim distinction in the type system.
Variants§
Final(SmbResponse)
Terminal reply; the context was consumed.
Interim
Interim STATUS_PENDING reply now; the final reply is owed later and the
work is parked in the returned Pending context ([MS-SMB2] §3.3.4.2).
Fields
§
interim: SmbResponseThe interim reply to send immediately.
Silent
No reply at all (e.g. CANCEL of an unknown id, or a terminating check).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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