pub struct Evicted {
pub session: SessionId,
pub peer: Option<Peer>,
pub len: usize,
}Available on crate feature
rustcrypto only.Expand description
A session that was evicted to make room for a new one (§4.11.1.1).
The session and its exchanges are already gone. What is left is the CLOSE_SESSION
status report the specification owes the evicted peer, framed and ready in the caller’s
output buffer.
Fields§
§session: SessionIdThe session that was removed.
peer: Option<Peer>Where its peer was, if the session knew — nothing to send to if it did not.
len: usizeHow many octets of the output buffer the report occupies. Zero if it could not be framed, which is not a reason to abandon the eviction.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Evicted
impl Freeze for Evicted
impl Move for Evicted
impl RefUnwindSafe for Evicted
impl Send for Evicted
impl Sync for Evicted
impl Unpin for Evicted
impl UnsafeUnpin for Evicted
impl UnwindSafe for Evicted
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