Skip to main content

Crate network

Crate network 

Source

Re-exports§

pub use file_system::io_error;

Modules§

sntp
SNTP client for Xila: sets the system UTC clock from the network.
wifi
Platform-independent Wi-Fi control plane; packet traffic remains in smoltcp. Long operations are scheduled by controls and performed by a driver runner. Profiles, persistence and reconnect policy belong to user space.

Structs§

ADD_DNS_SERVER
ADD_IP_ADDRESS
ADD_ROUTE
CONNECT_WIFI_CLIENT
Cidr
DISCONNECT_WIFI_CLIENT
DnsQueryKind
Duration
GET_DHCP_STATE
GET_DNS_SERVER
GET_DNS_SERVER_COUNT
GET_HARDWARE_ADDRESS
GET_IP_ADDRESS
GET_IP_ADDRESS_COUNT
GET_KIND
GET_MAXIMUM_BURST_SIZE
GET_MAXIMUM_TRANSMISSION_UNIT
GET_ROUTE
GET_ROUTE_COUNT
GET_STATE
GET_WIFI_CAPABILITIES
GET_WIFI_CONNECTION_INFO
GET_WIFI_CONNECTION_STATE
GET_WIFI_LAST_CONNECTION_ERROR
GET_WIFI_RADIO_STATE
GET_WIFI_SCAN_RESULT
GET_WIFI_SCAN_RESULT_COUNT
GET_WIFI_SCAN_STATE
IS_LINK_UP
IcmpSocket
IpAddressAbi
Plain-data payload mirror of IpAddress: same size (20 bytes) and alignment (4) as the #[repr(C)] enum, but every byte pattern is a valid value. Layout: family at offset 0 (a u32 tag), address at offset 4 (16 bytes). family is 0 for IPv4 and 1 for IPv6; any other value is rejected with InvalidArgument, as are non-zero bytes in the trailing 12 address bytes of an IPv4 address.
IpCidrAbi
Plain-data payload mirror of IpCidr: same size (24 bytes) and alignment (4) as the #[repr(C)] enum, but every byte pattern is a valid value. Layout: family at offset 0 (a u32 tag), address at offset 4 (16 bytes), prefix_length at offset 20, reserved at offset 21 (3 bytes, must be zero). family is 0 for IPv4 and 1 for IPv6; any other value, a non-zero reserved, a prefix length above 32 (IPv4) or 128 (IPv6), or non-zero bytes in the trailing 12 address bytes of an IPv4 address is rejected with InvalidArgument.
IpEndpoint
IpListenEndpoint
Ipv4
Ipv6
Loopback
A loopback device.
LoopbackControllerDevice
Manager
OptionalDurationAbi
Plain-data payload mirror of an optional Duration: same size (16 bytes) and alignment (8) as Option<Duration>, but every byte pattern is a valid value. Layout: seconds at offset 0, nanoseconds at offset 8, present at offset 12, reserved at offset 13 (3 bytes, must be zero). present is 0 or 1; any other value is rejected with InvalidArgument.
OptionalUsizeAbi
Plain-data payload mirror of Option<usize>: same size and alignment on every target, but every byte pattern is a valid value. Layout: present at offset 0, reserved at offsets 1..size_of::<usize>() (must be zero), value at offset size_of::<usize>(). present is 0 or 1; any other value, or a non-zero reserved, is rejected with InvalidArgument.
Port
REMOVE_DNS_SERVER
REMOVE_IP_ADDRESS
REMOVE_ROUTE
Route
RouteAbi
Plain-data payload mirror of Route: same size (80 bytes) and alignment (8), but every byte pattern is a valid value. Layout: cidr at offset 0, via_router at offset 24, reserved at offset 44 (4 bytes, must be zero), preferred_until at offset 48, expires_at at offset 64. Unknown families and invalid optional durations are rejected with InvalidArgument when converting back.
SET_DHCP_STATE
SET_HARDWARE_ADDRESS
SET_STATE
SET_WIFI_RADIO_STATE
START_WIFI_SCAN
SocketContext
StackRunner
TcpSocket
UdpMetadata
UdpSocket
WifiAccessPoint
WifiAuthentication
WifiCapabilities
WifiClientConfiguration
WifiConnectionErrorKind
WifiConnectionState
WifiPassword
Never printed or returned by status commands. Clear caller-owned copies too.
WifiRadioState
WifiScanConfiguration
WifiScanPhase
WifiScanResultCount
WifiScanResultRequest
WifiScanState
WifiSsid

Enums§

GetAddrInfoError
Symbolic getaddrinfo failure codes (EAI_*). Numeric values belong to the target libc.
IcmpEndpoint
InterfaceKind
IoErrorKind
A semantic I/O failure with a stable Xila ID.
IpAddress
IpCidr
ResolveError
A resolver failure with a stable Xila ID (equal to its Kind’s).

Traits§

IntoIoErrorKind
Explicit translation of a subsystem error into an I/O kind.
ResultExt
Convert a result whose error implements IntoIoErrorKind.

Functions§

create_loopback_device
get_smoltcp_time
initialize

Type Aliases§

MacAddress
ResolveResult
Result of a name resolution.
Result
Result type of every file system, VFS and device operation.
WakeSignal
A signal used to wake the runner when socket activity occurs.
WifiConnectionInfo
Connection metadata never contains credentials.