pub struct UnbufferedStatus<'c, 'i, Data> {
pub discard: usize,
pub state: Result<ConnectionState<'c, 'i, Data>, Error>,
}展开描述
此 current status of the UnbufferedConnection*
字段§
§discard: usizeNumber of bytes 到 discard
After the state field of this object has been handled, discard bytes must be
removed 从 the front of the incoming_tls 缓冲区 that was passed 到
the UnbufferedConnectionCommon::process_tls_records call that returned this object.
此弃版操作必须在再次调用 UnbufferedConnectionCommon::process_tls_records 之前完成。
state: Result<ConnectionState<'c, 'i, Data>, Error>此 current state of the handshake process
This value MUST be handled prior 到 calling
UnbufferedConnectionCommon::process_tls_records again. ,请参见 documentation on the
variants of ConnectionState 用于 more details.
Trait 实现§
自动 Trait 实现§
impl<'c, 'i, Data> Freeze for UnbufferedStatus<'c, 'i, Data>
impl<'c, 'i, Data> !RefUnwindSafe for UnbufferedStatus<'c, 'i, Data>
impl<'c, 'i, Data> Send for UnbufferedStatus<'c, 'i, Data>where
Data: Send,
impl<'c, 'i, Data> Sync for UnbufferedStatus<'c, 'i, Data>where
Data: Sync,
impl<'c, 'i, Data> Unpin for UnbufferedStatus<'c, 'i, Data>
impl<'c, 'i, Data> UnsafeUnpin for UnbufferedStatus<'c, 'i, Data>
impl<'c, 'i, Data> !UnwindSafe for UnbufferedStatus<'c, 'i, Data>
Blanket 实现§
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 从 an owned value. 更多信息