pub struct SecureLayer { /* private fields */ }Expand description
Secure layer
Implementations§
Source§impl SecureLayer
impl SecureLayer
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,
sig_key_pair_seed: Option<Seed32>,
expected_remote_sig_pubkey: Option<Vec<u8>>,
) -> Result<Self>
pub fn create( config: SecureLayerConfig, sig_key_pair_seed: Option<Seed32>, expected_remote_sig_pubkey: Option<Vec<u8>>, ) -> Result<Self>
Create secure layer
Sourcepub fn read_bin(
&mut self,
incoming_datas: &[u8],
) -> Result<Vec<IncomingBinaryMessage>>
pub fn read_bin( &mut self, incoming_datas: &[u8], ) -> Result<Vec<IncomingBinaryMessage>>
Read binary incoming datas
Sourcepub fn write_ack_msg_bin<W>(
&mut self,
custom_datas: Option<&[u8]>,
writer: &mut BufWriter<W>,
) -> Result<()>where
W: Write,
pub fn write_ack_msg_bin<W>(
&mut self,
custom_datas: Option<&[u8]>,
writer: &mut BufWriter<W>,
) -> Result<()>where
W: Write,
Write ack message with optional binary custom datas
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SecureLayer
impl RefUnwindSafe for SecureLayer
impl Send for SecureLayer
impl Sync for SecureLayer
impl Unpin for SecureLayer
impl UnwindSafe for SecureLayer
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