Enum ecksport_core::frame::AuthIntent
source · pub enum AuthIntent {
Neither,
ClientOnly,
ServerOnly,
Mutual,
}Expand description
Describes what auth relationship we want to set up with the server. This ignores any authentication that may be provided by the underlying transport.
Variants§
Neither
Neither side is doing any authentication.
ClientOnly
Only the client (initiator) authenticates to the server.
ServerOnly
Only the server (acceptor) authenticates to the client.
Mutual
Both sides of the connection authenticate with each other.
Implementations§
source§impl AuthIntent
impl AuthIntent
sourcepub fn should_sign(&self, side: Side) -> bool
pub fn should_sign(&self, side: Side) -> bool
Gets if the side in question should sign, given the signing intent.
pub fn should_exchange_chals(&self) -> bool
Trait Implementations§
source§impl Clone for AuthIntent
impl Clone for AuthIntent
source§fn clone(&self) -> AuthIntent
fn clone(&self) -> AuthIntent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for AuthIntent
impl Debug for AuthIntent
source§impl PartialEq for AuthIntent
impl PartialEq for AuthIntent
impl Copy for AuthIntent
impl Eq for AuthIntent
impl StructuralPartialEq for AuthIntent
Auto Trait Implementations§
impl Freeze for AuthIntent
impl RefUnwindSafe for AuthIntent
impl Send for AuthIntent
impl Sync for AuthIntent
impl Unpin for AuthIntent
impl UnwindSafe for AuthIntent
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)