[][src]Struct pkstl::MinimalSecureLayer

pub struct MinimalSecureLayer { /* fields omitted */ }

Minimal secure layer

Methods

impl MinimalSecureLayer[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,
    expected_remote_sig_public_key: Option<Vec<u8>>
) -> Result<Self>
[src]

Create minimal secure layer

pub fn drain_tmp_stack_user_msgs(&mut self) -> Result<Vec<Message>>[src]

Drain temporary stack of remote messages

pub fn take_ack_msg_recv_too_early(&mut self) -> Result<Option<Message>>[src]

Take ACK message received too early

pub fn read(&mut self, incoming_datas: &[u8]) -> Result<Option<Message>>[src]

Read incoming datas

pub fn create_connect_message(
    &mut self,
    public_key: &[u8],
    custom_datas: Option<&[u8]>
) -> Result<Vec<u8>>
[src]

Create connect message

pub fn create_ack_message(
    &mut self,
    custom_datas: Option<&[u8]>
) -> Result<Vec<u8>>
[src]

Create ack message

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

Write message

Trait Implementations

impl Debug for MinimalSecureLayer[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.