pub struct ClientPreamble<'a> {
pub exchange_public_key: &'a [u8],
pub remote: &'a str,
pub challenge: &'a [u8],
pub should_encrypt: bool,
pub is_udp: bool,
}Expand description
Serves as the preamble for the connection.
Fields§
§exchange_public_key: &'a [u8]§remote: &'a str§challenge: &'a [u8]§should_encrypt: bool§is_udp: boolTrait Implementations§
Source§impl<'__de, 'a, __Context> BorrowDecode<'__de, __Context> for ClientPreamble<'a>where
'__de: 'a,
impl<'__de, 'a, __Context> BorrowDecode<'__de, __Context> for ClientPreamble<'a>where
'__de: 'a,
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl<'a> Clone for ClientPreamble<'a>
impl<'a> Clone for ClientPreamble<'a>
Source§fn clone(&self) -> ClientPreamble<'a>
fn clone(&self) -> ClientPreamble<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ClientPreamble<'a>
impl<'a> Debug for ClientPreamble<'a>
Source§impl<'a> Encode for ClientPreamble<'a>
impl<'a> Encode for ClientPreamble<'a>
Source§impl<'a> PartialEq for ClientPreamble<'a>
impl<'a> PartialEq for ClientPreamble<'a>
impl<'a> Eq for ClientPreamble<'a>
impl<'a> StructuralPartialEq for ClientPreamble<'a>
Auto Trait Implementations§
impl<'a> Freeze for ClientPreamble<'a>
impl<'a> RefUnwindSafe for ClientPreamble<'a>
impl<'a> Send for ClientPreamble<'a>
impl<'a> Sync for ClientPreamble<'a>
impl<'a> Unpin for ClientPreamble<'a>
impl<'a> UnwindSafe for ClientPreamble<'a>
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