Struct rustls_accepted_alert

Source
pub struct rustls_accepted_alert { /* private fields */ }
Expand description

Represents a TLS alert resulting from accepting a client.

Implementations§

Source§

impl rustls_accepted_alert

Source

#[no_mangle]
pub extern "C" fn rustls_accepted_alert_write_tls( accepted_alert: *mut rustls_accepted_alert, callback: rustls_write_callback, userdata: *mut c_void, out_n: *mut size_t, ) -> rustls_io_result

Write some TLS bytes (an alert) to the network.

The actual network I/O is performed by callback, which you provide. Rustls will invoke your callback with a suitable buffer containing TLS bytes to send. You don’t have to write them all, just as many as you can in one syscall.

The userdata parameter is passed through directly to callback. Note that this is distinct from the userdata parameter set with rustls_connection_set_userdata.

Returns 0 for success, or an errno value on error. Passes through return values from callback. See rustls_write_callback or AcceptedAlert for more details.

Source

#[no_mangle]
pub extern "C" fn rustls_accepted_alert_free( accepted_alert: *mut rustls_accepted_alert, )

Free a rustls_accepted_alert.

Parameters:

accepted_alert: The rustls_accepted_alert to free.

Calling with NULL is fine. Must not be called twice with the same value.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.