pub struct V6Config {
pub method: Method,
pub address: [u8; 16],
pub prefix: u8,
pub gateway: [u8; 16],
}Expand description
PROP_IPV6_CONFIG: as V4Config with 16-octet addresses.
Fields§
§method: Method§address: [u8; 16]§prefix: u8At most 128.
gateway: [u8; 16]All-zero for no default route. May be link-local.
Implementations§
Source§impl V6Config
impl V6Config
Sourcepub fn validate(&self) -> Result<(), IpError>
pub fn validate(&self) -> Result<(), IpError>
Whether this configuration is one a device may be given.
A usable static address already held on the link is not
rejected here: the device accepts it and reports
FamilyState::Conflict, because a duplicate is discovered on
the wire rather than in the value.
pub fn encode(&self, out: &mut [u8]) -> Result<usize, IpError>
pub fn decode(bytes: &[u8]) -> Result<Self, IpError>
Trait Implementations§
impl Copy for V6Config
impl Eq for V6Config
impl StructuralPartialEq for V6Config
Auto Trait Implementations§
impl Freeze for V6Config
impl RefUnwindSafe for V6Config
impl Send for V6Config
impl Sync for V6Config
impl Unpin for V6Config
impl UnwindSafe for V6Config
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)