pub struct MinimalSecureLayer { /* private fields */ }Expand description
Minimal secure layer
Implementations§
Source§impl MinimalSecureLayer
impl MinimalSecureLayer
Sourcepub fn try_clone(&mut self) -> Result<Self>
pub fn try_clone(&mut self) -> Result<Self>
Try to clone, The negotiation must have been successful
Sourcepub fn change_config(&mut self, new_config: SecureLayerConfig) -> Result<()>
pub fn change_config(&mut self, new_config: SecureLayerConfig) -> Result<()>
Change configuration
Sourcepub fn create(
config: SecureLayerConfig,
expected_remote_sig_public_key: Option<Vec<u8>>,
) -> Result<Self>
pub fn create( config: SecureLayerConfig, expected_remote_sig_public_key: Option<Vec<u8>>, ) -> Result<Self>
Create minimal secure layer
Sourcepub fn drain_tmp_stack_user_msgs(&mut self) -> Result<Vec<Message>>
pub fn drain_tmp_stack_user_msgs(&mut self) -> Result<Vec<Message>>
Drain temporary stack of remote messages
Sourcepub fn take_ack_msg_recv_too_early(&mut self) -> Result<Option<Message>>
pub fn take_ack_msg_recv_too_early(&mut self) -> Result<Option<Message>>
Take ACK message received too early
Sourcepub fn create_connect_message(
&mut self,
public_key: &[u8],
custom_datas: Option<&[u8]>,
) -> Result<Vec<u8>>
pub fn create_connect_message( &mut self, public_key: &[u8], custom_datas: Option<&[u8]>, ) -> Result<Vec<u8>>
Create connect message
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MinimalSecureLayer
impl RefUnwindSafe for MinimalSecureLayer
impl Send for MinimalSecureLayer
impl Sync for MinimalSecureLayer
impl Unpin for MinimalSecureLayer
impl UnwindSafe for MinimalSecureLayer
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