[−][src]Struct pkstl::SecureLayer
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]
config: SecureLayerConfig,
sig_key_pair_seed: Option<Seed32>,
expected_remote_sig_pubkey: Option<Vec<u8>>
) -> Result<Self>
Create secure layer
pub fn read_bin(
&mut self,
incoming_datas: &[u8]
) -> Result<Vec<IncomingBinaryMessage>>
[src]
&mut self,
incoming_datas: &[u8]
) -> Result<Vec<IncomingBinaryMessage>>
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]
&mut self,
custom_datas: Option<&[u8]>,
writer: &mut BufWriter<W>
) -> Result<()> where
W: Write,
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]
&mut self,
custom_datas: Option<&[u8]>,
writer: &mut BufWriter<W>
) -> Result<()> where
W: Write,
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]
&mut self,
binary_message: &[u8],
writer: &mut BufWriter<W>
) -> Result<()> where
W: Write,
Write binary message on a writer
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SecureLayer
impl Send for SecureLayer
impl Sync for SecureLayer
impl Unpin for SecureLayer
impl UnwindSafe for SecureLayer
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>,