pub struct RecvState {
pub state: TcpState,
pub snd_nxt: u32,
pub rcv_nxt: u32,
pub fin_received: bool,
}Expand description
ソケットのうち、受信側状態機械が読み書きする部分だけを抜き出したもの。
Fields§
§state: TcpState§snd_nxt: u32次に自分が送信するときに使うシーケンス番号。
rcv_nxt: u32次に受信を期待するシーケンス番号(これ未満は受信済み)。
fin_received: bool相手からの FIN を「順序どおりに」受け取ったか。 これが true になると上位層は EOF と解釈するため、データの取りこぼしが ある状態で true にしてはならない(レスポンス途中切れの直接原因になる)。
Trait Implementations§
impl Copy for RecvState
impl Eq for RecvState
impl StructuralPartialEq for RecvState
Auto Trait Implementations§
impl Freeze for RecvState
impl RefUnwindSafe for RecvState
impl Send for RecvState
impl Sync for RecvState
impl Unpin for RecvState
impl UnsafeUnpin for RecvState
impl UnwindSafe for RecvState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.