pub struct SessionPreface {
pub nonce: SessionNonceText,
pub offers: StreamOffers,
pub port: Option<PortText>,
}Expand description
One raw session preface: its sender’s nonce, stream-encoding offers, and optional port.
Fields§
§nonce: SessionNonceText§offers: StreamOffers§port: Option<PortText>Trait Implementations§
Source§impl Clone for SessionPreface
impl Clone for SessionPreface
Source§fn clone(&self) -> SessionPreface
fn clone(&self) -> SessionPreface
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 moreSource§impl Debug for SessionPreface
impl Debug for SessionPreface
impl Eq for SessionPreface
Source§impl PartialEq for SessionPreface
impl PartialEq for SessionPreface
Source§fn eq(&self, other: &SessionPreface) -> bool
fn eq(&self, other: &SessionPreface) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SessionPreface
Auto Trait Implementations§
impl Freeze for SessionPreface
impl RefUnwindSafe for SessionPreface
impl Send for SessionPreface
impl Sync for SessionPreface
impl Unpin for SessionPreface
impl UnsafeUnpin for SessionPreface
impl UnwindSafe for SessionPreface
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