pub struct BipPortConfig {
pub network_number: u16,
pub apdu_length: u32,
pub ip_address: [u8; 4],
pub udp_port: u16,
pub subnet_mask: [u8; 4],
pub default_gateway: [u8; 4],
pub dns_servers: Vec<[u8; 4]>,
}Expand description
Complete configured B/IP snapshot. Fixed-size addresses prevent malformed IPv4 values. Zero address/mask/gateway and one zero DNS address mean unknown or unconfigured; they do not describe an observed interface or route.
Fields§
§network_number: u16Caller-configured number; zero means unknown, 65535 is invalid.
apdu_length: u32Port APDU_Length (399), independent of Device Max_APDU_Length_Accepted. Any Unsigned value >= 50 is permitted by the property clause.
ip_address: [u8; 4]Configured IPv4 address, in network byte order.
udp_port: u16Zero is allowed in this unbound configuration, independently of Port ID.
subnet_mask: [u8; 4]Configured mask, with no assumed prefix or interface discovery.
default_gateway: [u8; 4]Configured gateway, with no assumed OS route.
dns_servers: Vec<[u8; 4]>At least one address; a zero address represents unavailable DNS.
Trait Implementations§
Source§impl Clone for BipPortConfig
impl Clone for BipPortConfig
Source§impl Debug for BipPortConfig
impl Debug for BipPortConfig
Source§impl Default for BipPortConfig
impl Default for BipPortConfig
impl Eq for BipPortConfig
Source§impl PartialEq for BipPortConfig
impl PartialEq for BipPortConfig
impl StructuralPartialEq for BipPortConfig
Auto Trait Implementations§
impl Freeze for BipPortConfig
impl RefUnwindSafe for BipPortConfig
impl Send for BipPortConfig
impl Sync for BipPortConfig
impl Unpin for BipPortConfig
impl UnsafeUnpin for BipPortConfig
impl UnwindSafe for BipPortConfig
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