pub struct Config {
pub role: Role,
pub s_addr: MacAddr,
pub s_protection: ProtectionInfo,
pub a_addr: MacAddr,
pub a_protection: ProtectionInfo,
pub nonce_rdr: Arc<NonceReader>,
pub gtk_provider: Option<Arc<Mutex<GtkProvider>>>,
pub igtk_provider: Option<Arc<Mutex<IgtkProvider>>>,
/* private fields */
}
Fields§
§role: Role
§s_addr: MacAddr
§s_protection: ProtectionInfo
§a_addr: MacAddr
§a_protection: ProtectionInfo
§nonce_rdr: Arc<NonceReader>
§gtk_provider: Option<Arc<Mutex<GtkProvider>>>
§igtk_provider: Option<Arc<Mutex<IgtkProvider>>>
Implementations§
Source§impl Config
impl Config
pub fn new( role: Role, s_addr: MacAddr, s_protection: ProtectionInfo, a_addr: MacAddr, a_protection: ProtectionInfo, nonce_rdr: Arc<NonceReader>, gtk_provider: Option<Arc<Mutex<GtkProvider>>>, igtk_provider: Option<Arc<Mutex<IgtkProvider>>>, ) -> Result<Config, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl !RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl !UnwindSafe for Config
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
)