Struct cerbero_lib::Kdcs
source · pub struct Kdcs { /* private fields */ }Expand description
Struct to package KDC’s
Implementations§
source§impl Kdcs
impl Kdcs
pub fn new() -> Self
sourcepub fn insert(&mut self, realm: String, ip: IpAddr)
pub fn insert(&mut self, realm: String, ip: IpAddr)
§Examples
let mut kdcs = Kdcs::new();
let realm_ip = IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1));
kdcs.insert("realm.com", realm_ip);pub fn get(&self, realm: &str) -> Option<&IpAddr>
pub fn ips(&self) -> Vec<&IpAddr>
pub fn get_clone(&self, realm: &str) -> Option<IpAddr>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Kdcs
impl RefUnwindSafe for Kdcs
impl Send for Kdcs
impl Sync for Kdcs
impl Unpin for Kdcs
impl UnwindSafe for Kdcs
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