pub struct BootstrapConfig {
pub identity: Option<ClientIdentity>,
pub server: ServerInfo,
pub state_type_id: String,
pub extensions: Vec<u16>,
}Available on crate feature
client only.Expand description
Bootstrap configuration.
Fields§
§identity: Option<ClientIdentity>Client identity (optional, generated if not provided).
server: ServerInfoServer information.
state_type_id: StringState type ID for handshake.
extensions: Vec<u16>Requested extensions.
Trait Implementations§
Source§impl Clone for BootstrapConfig
impl Clone for BootstrapConfig
Source§fn clone(&self) -> BootstrapConfig
fn clone(&self) -> BootstrapConfig
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for BootstrapConfig
impl RefUnwindSafe for BootstrapConfig
impl Send for BootstrapConfig
impl Sync for BootstrapConfig
impl Unpin for BootstrapConfig
impl UnwindSafe for BootstrapConfig
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