[−][src]Struct pkstl::MinimalSecureLayer
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]
config: SecureLayerConfig,
expected_remote_sig_public_key: Option<Vec<u8>>
) -> Result<Self>
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]
&mut self,
public_key: &[u8],
custom_datas: Option<&[u8]>
) -> Result<Vec<u8>>
Create connect message
pub fn create_ack_message(
&mut self,
custom_datas: Option<&[u8]>
) -> Result<Vec<u8>>
[src]
&mut self,
custom_datas: Option<&[u8]>
) -> Result<Vec<u8>>
Create ack message
pub fn write_message<W: Write>(
&mut self,
datas: &[u8],
writer: &mut BufWriter<W>
) -> Result<()>
[src]
&mut self,
datas: &[u8],
writer: &mut BufWriter<W>
) -> Result<()>
Write message
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MinimalSecureLayer
impl Send for MinimalSecureLayer
impl Sync for MinimalSecureLayer
impl Unpin for MinimalSecureLayer
impl UnwindSafe for MinimalSecureLayer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,