pub struct CloseReport {
pub reason: Error,
pub supplemental_errors: Vec<Error>,
pub transport_end: TransportEnd,
pub pending_count: usize,
pub discarded_outbound: usize,
pub driver_resources_released: bool,
}Expand description
通用连接、Session、请求和事件契约;与独立 Vendor 绑定使用相同运行时。 协议身份、选项和静态 marker 契约。 共享关闭结果;用户持有的数据和许可不算已回收。
Fields§
§reason: Error第一个终结者记录的原因。
supplemental_errors: Vec<Error>关闭期间按观察顺序记录的额外传输错误,读写各至多一个、合计至多两个;不覆盖首次原因,不记录参数。
transport_end: TransportEnd传输结束方式。
pending_count: usize关闭时取走的 pending 数量。
discarded_outbound: usize关闭时丢弃的尚未写入帧数量。
driver_resources_released: bool传输和 Driver 所有的队列句柄均已释放。
Trait Implementations§
Source§impl Clone for CloseReport
impl Clone for CloseReport
Source§fn clone(&self) -> CloseReport
fn clone(&self) -> CloseReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for CloseReport
impl !RefUnwindSafe for CloseReport
impl !UnwindSafe for CloseReport
impl Send for CloseReport
impl Sync for CloseReport
impl Unpin for CloseReport
impl UnsafeUnpin for CloseReport
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