pub struct Parameters<Role> { /* private fields */ }Implementations§
Source§impl<Role> Parameters<Role>
impl<Role> Parameters<Role>
pub fn get<V>(&self, id: ParameterId) -> Option<V>where
V: TryFrom<ParameterValue>,
pub fn contains(&self, id: ParameterId) -> bool
pub fn is_empty(&self) -> bool
Source§impl<R: IntoRole + Default> Parameters<R>
impl<R: IntoRole + Default> Parameters<R>
pub fn new() -> Self
pub fn set( &mut self, id: ParameterId, value: impl Into<ParameterValue>, ) -> Result<(), Error>
Source§impl Parameters<Server>
impl Parameters<Server>
pub fn is_0rtt_accepted(&self, server_params: &ServerParameters) -> bool
Source§impl<R: IntoRole + RequiredParameters + Default> Parameters<R>
impl<R: IntoRole + RequiredParameters + Default> Parameters<R>
pub fn parse_from_bytes(buf: &[u8]) -> Result<Self, QuicError>
Source§impl Parameters<Server>
impl Parameters<Server>
pub fn try_from_remembered_bytes(buf: &[u8]) -> Result<Self, QuicError>
Trait Implementations§
Source§impl<Role: Clone> Clone for Parameters<Role>
impl<Role: Clone> Clone for Parameters<Role>
Source§fn clone(&self) -> Parameters<Role>
fn clone(&self) -> Parameters<Role>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Role: Debug> Debug for Parameters<Role>
impl<Role: Debug> Debug for Parameters<Role>
Source§impl<Role: Default> Default for Parameters<Role>
impl<Role: Default> Default for Parameters<Role>
Source§fn default() -> Parameters<Role>
fn default() -> Parameters<Role>
Returns the “default value” for a type. Read more
Source§impl From<Parameters<Client>> for PeerParameters
impl From<Parameters<Client>> for PeerParameters
Source§fn from(value: ClientParameters) -> Self
fn from(value: ClientParameters) -> Self
Converts to this type from the input type.
Source§impl From<Parameters<Server>> for PeerParameters
impl From<Parameters<Server>> for PeerParameters
Source§fn from(value: ServerParameters) -> Self
fn from(value: ServerParameters) -> Self
Converts to this type from the input type.
Source§impl<Role: PartialEq> PartialEq for Parameters<Role>
impl<Role: PartialEq> PartialEq for Parameters<Role>
impl<Role> StructuralPartialEq for Parameters<Role>
Auto Trait Implementations§
impl<Role> Freeze for Parameters<Role>
impl<Role> RefUnwindSafe for Parameters<Role>where
Role: RefUnwindSafe,
impl<Role> Send for Parameters<Role>where
Role: Send,
impl<Role> Sync for Parameters<Role>where
Role: Sync,
impl<Role> Unpin for Parameters<Role>where
Role: Unpin,
impl<Role> UnwindSafe for Parameters<Role>where
Role: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)