[][src]Struct pkstl::SecureLayer

pub struct SecureLayer { /* fields omitted */ }

Secure layer

Methods

impl SecureLayer[src]

pub fn try_clone(&mut self) -> Result<Self>[src]

Try to clone, The negotiation must have been successful

pub fn change_config(&mut self, new_config: SecureLayerConfig) -> Result<()>[src]

Change configuration

pub fn create(
    config: SecureLayerConfig,
    sig_key_pair_seed: Option<Seed32>,
    expected_remote_sig_pubkey: Option<Vec<u8>>
) -> Result<Self>
[src]

Create secure layer

pub fn read_bin(
    &mut self,
    incoming_datas: &[u8]
) -> Result<Vec<IncomingBinaryMessage>>
[src]

Read binary incoming datas

pub fn write_ack_msg_bin<W>(
    &mut self,
    custom_datas: Option<&[u8]>,
    writer: &mut BufWriter<W>
) -> Result<()> where
    W: Write
[src]

Write ack message with optional binary custom datas

pub fn write_connect_msg_bin<W>(
    &mut self,
    custom_datas: Option<&[u8]>,
    writer: &mut BufWriter<W>
) -> Result<()> where
    W: Write
[src]

Write connect message with optional binary custom datas

pub fn write_bin<W>(
    &mut self,
    binary_message: &[u8],
    writer: &mut BufWriter<W>
) -> Result<()> where
    W: Write
[src]

Write binary message on a writer

Trait Implementations

impl Debug for SecureLayer[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.