#![warn(clippy::all)]
#![allow(unused_parens, unused_mut, unused_imports, nonstandard_style)]
use bitflags::bitflags;
use fidl::client::QueryResponseFut;
use fidl::encoding::{MessageBufFor, ProxyChannelBox, ResourceDialect};
use fidl::endpoints::{ControlHandle as _, Responder as _};
use futures::future::{self, MaybeDone, TryFutureExt};
use zx_status;
pub type Protocol = u8;
pub const SOCKET_PROTOCOL_NAME: &str = "fuchsia.posix.socket.raw/Socket";
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct Empty;
impl fidl::Persistable for Empty {}
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
#[repr(C)]
pub struct Icmpv6Filter {
pub blocked_types: [u32; 8],
}
impl fidl::Persistable for Icmpv6Filter {}
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct ProviderSocketRequest {
pub domain: fidl_fuchsia_posix_socket::Domain,
pub proto: ProtocolAssociation,
}
impl fidl::Persistable for ProviderSocketRequest {}
#[derive(Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct ProviderSocketResponse {
pub s: fidl::endpoints::ClientEnd<SocketMarker>,
}
impl fidl::Standalone<fidl::encoding::DefaultFuchsiaResourceDialect> for ProviderSocketResponse {}
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct SocketRecvMsgRequest {
pub want_addr: bool,
pub data_len: u32,
pub want_control: bool,
pub flags: fidl_fuchsia_posix_socket::RecvMsgFlags,
}
impl fidl::Persistable for SocketRecvMsgRequest {}
#[derive(Clone, Debug, PartialEq)]
pub struct SocketSendMsgRequest {
pub addr: Option<Box<fidl_fuchsia_net::SocketAddress>>,
pub data: Vec<u8>,
pub control: fidl_fuchsia_posix_socket::NetworkSocketSendControlData,
pub flags: fidl_fuchsia_posix_socket::SendMsgFlags,
}
impl fidl::Persistable for SocketSendMsgRequest {}
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
#[repr(C)]
pub struct SocketSetIcmpv6FilterRequest {
pub filter: Icmpv6Filter,
}
impl fidl::Persistable for SocketSetIcmpv6FilterRequest {}
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct SocketSetIpHeaderIncludedRequest {
pub value: bool,
}
impl fidl::Persistable for SocketSetIpHeaderIncludedRequest {}
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct SocketSetIpv6ChecksumRequest {
pub config: Ipv6ChecksumConfiguration,
}
impl fidl::Persistable for SocketSetIpv6ChecksumRequest {}
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
#[repr(C)]
pub struct SocketGetIcmpv6FilterResponse {
pub filter: Icmpv6Filter,
}
impl fidl::Persistable for SocketGetIcmpv6FilterResponse {}
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct SocketGetInfoResponse {
pub domain: fidl_fuchsia_posix_socket::Domain,
pub proto: ProtocolAssociation,
}
impl fidl::Persistable for SocketGetInfoResponse {}
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct SocketGetIpHeaderIncludedResponse {
pub value: bool,
}
impl fidl::Persistable for SocketGetIpHeaderIncludedResponse {}
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct SocketGetIpv6ChecksumResponse {
pub config: Ipv6ChecksumConfiguration,
}
impl fidl::Persistable for SocketGetIpv6ChecksumResponse {}
#[derive(Clone, Debug, PartialEq)]
pub struct SocketRecvMsgResponse {
pub addr: Option<Box<fidl_fuchsia_net::SocketAddress>>,
pub data: Vec<u8>,
pub control: fidl_fuchsia_posix_socket::NetworkSocketRecvControlData,
pub truncated: u32,
}
impl fidl::Persistable for SocketRecvMsgResponse {}
#[derive(Debug, Default, PartialEq)]
pub struct SocketDescribeResponse {
pub event: Option<fidl::EventPair>,
#[doc(hidden)]
pub __source_breaking: fidl::marker::SourceBreaking,
}
impl fidl::Standalone<fidl::encoding::DefaultFuchsiaResourceDialect> for SocketDescribeResponse {}
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum Ipv6ChecksumConfiguration {
Disabled(Empty),
Offset(i32),
}
impl Ipv6ChecksumConfiguration {
#[inline]
pub fn ordinal(&self) -> u64 {
match *self {
Self::Disabled(_) => 1,
Self::Offset(_) => 2,
}
}
#[deprecated = "Strict unions should not use `is_unknown`"]
#[inline]
pub fn is_unknown(&self) -> bool {
false
}
}
impl fidl::Persistable for Ipv6ChecksumConfiguration {}
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum ProtocolAssociation {
Unassociated(Empty),
Associated(u8),
}
impl ProtocolAssociation {
#[inline]
pub fn ordinal(&self) -> u64 {
match *self {
Self::Unassociated(_) => 1,
Self::Associated(_) => 2,
}
}
#[deprecated = "Strict unions should not use `is_unknown`"]
#[inline]
pub fn is_unknown(&self) -> bool {
false
}
}
impl fidl::Persistable for ProtocolAssociation {}
#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
pub struct ProviderMarker;
impl fidl::endpoints::ProtocolMarker for ProviderMarker {
type Proxy = ProviderProxy;
type RequestStream = ProviderRequestStream;
#[cfg(target_os = "fuchsia")]
type SynchronousProxy = ProviderSynchronousProxy;
const DEBUG_NAME: &'static str = "fuchsia.posix.socket.raw.Provider";
}
impl fidl::endpoints::DiscoverableProtocolMarker for ProviderMarker {}
pub type ProviderSocketResult =
Result<fidl::endpoints::ClientEnd<SocketMarker>, fidl_fuchsia_posix::Errno>;
pub trait ProviderProxyInterface: Send + Sync {
type SocketResponseFut: std::future::Future<Output = Result<ProviderSocketResult, fidl::Error>>
+ Send;
fn r#socket(
&self,
domain: fidl_fuchsia_posix_socket::Domain,
proto: &ProtocolAssociation,
) -> Self::SocketResponseFut;
}
#[derive(Debug)]
#[cfg(target_os = "fuchsia")]
pub struct ProviderSynchronousProxy {
client: fidl::client::sync::Client,
}
#[cfg(target_os = "fuchsia")]
impl fidl::endpoints::SynchronousProxy for ProviderSynchronousProxy {
type Proxy = ProviderProxy;
type Protocol = ProviderMarker;
fn from_channel(inner: fidl::Channel) -> Self {
Self::new(inner)
}
fn into_channel(self) -> fidl::Channel {
self.client.into_channel()
}
fn as_channel(&self) -> &fidl::Channel {
self.client.as_channel()
}
}
#[cfg(target_os = "fuchsia")]
impl ProviderSynchronousProxy {
pub fn new(channel: fidl::Channel) -> Self {
let protocol_name = <ProviderMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
Self { client: fidl::client::sync::Client::new(channel, protocol_name) }
}
pub fn into_channel(self) -> fidl::Channel {
self.client.into_channel()
}
pub fn wait_for_event(
&self,
deadline: zx::MonotonicInstant,
) -> Result<ProviderEvent, fidl::Error> {
ProviderEvent::decode(self.client.wait_for_event(deadline)?)
}
pub fn r#socket(
&self,
mut domain: fidl_fuchsia_posix_socket::Domain,
mut proto: &ProtocolAssociation,
___deadline: zx::MonotonicInstant,
) -> Result<ProviderSocketResult, fidl::Error> {
let _response =
self.client.send_query::<ProviderSocketRequest, fidl::encoding::ResultType<
ProviderSocketResponse,
fidl_fuchsia_posix::Errno,
>>(
(domain, proto),
0xdfa6a591ab48fd1,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x.s))
}
}
#[derive(Debug, Clone)]
pub struct ProviderProxy {
client: fidl::client::Client<fidl::encoding::DefaultFuchsiaResourceDialect>,
}
impl fidl::endpoints::Proxy for ProviderProxy {
type Protocol = ProviderMarker;
fn from_channel(inner: ::fidl::AsyncChannel) -> Self {
Self::new(inner)
}
fn into_channel(self) -> Result<::fidl::AsyncChannel, Self> {
self.client.into_channel().map_err(|client| Self { client })
}
fn as_channel(&self) -> &::fidl::AsyncChannel {
self.client.as_channel()
}
}
impl ProviderProxy {
pub fn new(channel: ::fidl::AsyncChannel) -> Self {
let protocol_name = <ProviderMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
Self { client: fidl::client::Client::new(channel, protocol_name) }
}
pub fn take_event_stream(&self) -> ProviderEventStream {
ProviderEventStream { event_receiver: self.client.take_event_receiver() }
}
pub fn r#socket(
&self,
mut domain: fidl_fuchsia_posix_socket::Domain,
mut proto: &ProtocolAssociation,
) -> fidl::client::QueryResponseFut<
ProviderSocketResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
ProviderProxyInterface::r#socket(self, domain, proto)
}
}
impl ProviderProxyInterface for ProviderProxy {
type SocketResponseFut = fidl::client::QueryResponseFut<
ProviderSocketResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#socket(
&self,
mut domain: fidl_fuchsia_posix_socket::Domain,
mut proto: &ProtocolAssociation,
) -> Self::SocketResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<ProviderSocketResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<ProviderSocketResponse, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0xdfa6a591ab48fd1,
>(_buf?)?;
Ok(_response.map(|x| x.s))
}
self.client.send_query_and_decode::<ProviderSocketRequest, ProviderSocketResult>(
(domain, proto),
0xdfa6a591ab48fd1,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
}
pub struct ProviderEventStream {
event_receiver: fidl::client::EventReceiver<fidl::encoding::DefaultFuchsiaResourceDialect>,
}
impl std::marker::Unpin for ProviderEventStream {}
impl futures::stream::FusedStream for ProviderEventStream {
fn is_terminated(&self) -> bool {
self.event_receiver.is_terminated()
}
}
impl futures::Stream for ProviderEventStream {
type Item = Result<ProviderEvent, fidl::Error>;
fn poll_next(
mut self: std::pin::Pin<&mut Self>,
cx: &mut std::task::Context<'_>,
) -> std::task::Poll<Option<Self::Item>> {
match futures::ready!(futures::stream::StreamExt::poll_next_unpin(
&mut self.event_receiver,
cx
)?) {
Some(buf) => std::task::Poll::Ready(Some(ProviderEvent::decode(buf))),
None => std::task::Poll::Ready(None),
}
}
}
#[derive(Debug)]
pub enum ProviderEvent {}
impl ProviderEvent {
fn decode(
mut buf: <fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc,
) -> Result<ProviderEvent, fidl::Error> {
let (bytes, _handles) = buf.split_mut();
let (tx_header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
debug_assert_eq!(tx_header.tx_id, 0);
match tx_header.ordinal {
_ => Err(fidl::Error::UnknownOrdinal {
ordinal: tx_header.ordinal,
protocol_name: <ProviderMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
}),
}
}
}
pub struct ProviderRequestStream {
inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
is_terminated: bool,
}
impl std::marker::Unpin for ProviderRequestStream {}
impl futures::stream::FusedStream for ProviderRequestStream {
fn is_terminated(&self) -> bool {
self.is_terminated
}
}
impl fidl::endpoints::RequestStream for ProviderRequestStream {
type Protocol = ProviderMarker;
type ControlHandle = ProviderControlHandle;
fn from_channel(channel: ::fidl::AsyncChannel) -> Self {
Self { inner: std::sync::Arc::new(fidl::ServeInner::new(channel)), is_terminated: false }
}
fn control_handle(&self) -> Self::ControlHandle {
ProviderControlHandle { inner: self.inner.clone() }
}
fn into_inner(
self,
) -> (::std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>, bool)
{
(self.inner, self.is_terminated)
}
fn from_inner(
inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
is_terminated: bool,
) -> Self {
Self { inner, is_terminated }
}
}
impl futures::Stream for ProviderRequestStream {
type Item = Result<ProviderRequest, fidl::Error>;
fn poll_next(
mut self: std::pin::Pin<&mut Self>,
cx: &mut std::task::Context<'_>,
) -> std::task::Poll<Option<Self::Item>> {
let this = &mut *self;
if this.inner.check_shutdown(cx) {
this.is_terminated = true;
return std::task::Poll::Ready(None);
}
if this.is_terminated {
panic!("polled ProviderRequestStream after completion");
}
fidl::encoding::with_tls_decode_buf::<_, fidl::encoding::DefaultFuchsiaResourceDialect>(
|bytes, handles| {
match this.inner.channel().read_etc(cx, bytes, handles) {
std::task::Poll::Ready(Ok(())) => {}
std::task::Poll::Pending => return std::task::Poll::Pending,
std::task::Poll::Ready(Err(zx_status::Status::PEER_CLOSED)) => {
this.is_terminated = true;
return std::task::Poll::Ready(None);
}
std::task::Poll::Ready(Err(e)) => {
return std::task::Poll::Ready(Some(Err(fidl::Error::ServerRequestRead(
e.into(),
))))
}
}
let (header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
std::task::Poll::Ready(Some(match header.ordinal {
0xdfa6a591ab48fd1 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
ProviderSocketRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<ProviderSocketRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = ProviderControlHandle { inner: this.inner.clone() };
Ok(ProviderRequest::Socket {
domain: req.domain,
proto: req.proto,
responder: ProviderSocketResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
_ => Err(fidl::Error::UnknownOrdinal {
ordinal: header.ordinal,
protocol_name:
<ProviderMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
}),
}))
},
)
}
}
#[derive(Debug)]
pub enum ProviderRequest {
Socket {
domain: fidl_fuchsia_posix_socket::Domain,
proto: ProtocolAssociation,
responder: ProviderSocketResponder,
},
}
impl ProviderRequest {
#[allow(irrefutable_let_patterns)]
pub fn into_socket(
self,
) -> Option<(fidl_fuchsia_posix_socket::Domain, ProtocolAssociation, ProviderSocketResponder)>
{
if let ProviderRequest::Socket { domain, proto, responder } = self {
Some((domain, proto, responder))
} else {
None
}
}
pub fn method_name(&self) -> &'static str {
match *self {
ProviderRequest::Socket { .. } => "socket",
}
}
}
#[derive(Debug, Clone)]
pub struct ProviderControlHandle {
inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
}
impl fidl::endpoints::ControlHandle for ProviderControlHandle {
fn shutdown(&self) {
self.inner.shutdown()
}
fn shutdown_with_epitaph(&self, status: zx_status::Status) {
self.inner.shutdown_with_epitaph(status)
}
fn is_closed(&self) -> bool {
self.inner.channel().is_closed()
}
fn on_closed(&self) -> fidl::OnSignalsRef<'_> {
self.inner.channel().on_closed()
}
#[cfg(target_os = "fuchsia")]
fn signal_peer(
&self,
clear_mask: zx::Signals,
set_mask: zx::Signals,
) -> Result<(), zx_status::Status> {
use fidl::Peered;
self.inner.channel().signal_peer(clear_mask, set_mask)
}
}
impl ProviderControlHandle {}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct ProviderSocketResponder {
control_handle: std::mem::ManuallyDrop<ProviderControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for ProviderSocketResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for ProviderSocketResponder {
type ControlHandle = ProviderControlHandle;
fn control_handle(&self) -> &ProviderControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl ProviderSocketResponder {
pub fn send(
self,
mut result: Result<fidl::endpoints::ClientEnd<SocketMarker>, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<fidl::endpoints::ClientEnd<SocketMarker>, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<fidl::endpoints::ClientEnd<SocketMarker>, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
ProviderSocketResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|s| (s,)),
self.tx_id,
0xdfa6a591ab48fd1,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
pub struct SocketMarker;
impl fidl::endpoints::ProtocolMarker for SocketMarker {
type Proxy = SocketProxy;
type RequestStream = SocketRequestStream;
#[cfg(target_os = "fuchsia")]
type SynchronousProxy = SocketSynchronousProxy;
const DEBUG_NAME: &'static str = "fuchsia.posix.socket.raw.Socket";
}
impl fidl::endpoints::DiscoverableProtocolMarker for SocketMarker {}
pub type SocketRecvMsgResult = Result<
(
Option<Box<fidl_fuchsia_net::SocketAddress>>,
Vec<u8>,
fidl_fuchsia_posix_socket::NetworkSocketRecvControlData,
u32,
),
fidl_fuchsia_posix::Errno,
>;
pub type SocketSendMsgResult = Result<(), fidl_fuchsia_posix::Errno>;
pub type SocketGetInfoResult =
Result<(fidl_fuchsia_posix_socket::Domain, ProtocolAssociation), fidl_fuchsia_posix::Errno>;
pub type SocketSetIpHeaderIncludedResult = Result<(), fidl_fuchsia_posix::Errno>;
pub type SocketGetIpHeaderIncludedResult = Result<bool, fidl_fuchsia_posix::Errno>;
pub type SocketSetIcmpv6FilterResult = Result<(), fidl_fuchsia_posix::Errno>;
pub type SocketGetIcmpv6FilterResult = Result<Icmpv6Filter, fidl_fuchsia_posix::Errno>;
pub type SocketSetIpv6ChecksumResult = Result<(), fidl_fuchsia_posix::Errno>;
pub type SocketGetIpv6ChecksumResult = Result<Ipv6ChecksumConfiguration, fidl_fuchsia_posix::Errno>;
pub trait SocketProxyInterface: Send + Sync {
fn r#clone(
&self,
request: fidl::endpoints::ServerEnd<fidl_fuchsia_unknown::CloneableMarker>,
) -> Result<(), fidl::Error>;
type CloseResponseFut: std::future::Future<
Output = Result<fidl_fuchsia_unknown::CloseableCloseResult, fidl::Error>,
> + Send;
fn r#close(&self) -> Self::CloseResponseFut;
type QueryResponseFut: std::future::Future<Output = Result<Vec<u8>, fidl::Error>> + Send;
fn r#query(&self) -> Self::QueryResponseFut;
type SetReuseAddressResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseSocketSetReuseAddressResult,
fidl::Error,
>,
> + Send;
fn r#set_reuse_address(&self, value: bool) -> Self::SetReuseAddressResponseFut;
type GetReuseAddressResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseSocketGetReuseAddressResult,
fidl::Error,
>,
> + Send;
fn r#get_reuse_address(&self) -> Self::GetReuseAddressResponseFut;
type GetErrorResponseFut: std::future::Future<
Output = Result<fidl_fuchsia_posix_socket::BaseSocketGetErrorResult, fidl::Error>,
> + Send;
fn r#get_error(&self) -> Self::GetErrorResponseFut;
type SetBroadcastResponseFut: std::future::Future<
Output = Result<fidl_fuchsia_posix_socket::BaseSocketSetBroadcastResult, fidl::Error>,
> + Send;
fn r#set_broadcast(&self, value: bool) -> Self::SetBroadcastResponseFut;
type GetBroadcastResponseFut: std::future::Future<
Output = Result<fidl_fuchsia_posix_socket::BaseSocketGetBroadcastResult, fidl::Error>,
> + Send;
fn r#get_broadcast(&self) -> Self::GetBroadcastResponseFut;
type SetSendBufferResponseFut: std::future::Future<
Output = Result<fidl_fuchsia_posix_socket::BaseSocketSetSendBufferResult, fidl::Error>,
> + Send;
fn r#set_send_buffer(&self, value_bytes: u64) -> Self::SetSendBufferResponseFut;
type GetSendBufferResponseFut: std::future::Future<
Output = Result<fidl_fuchsia_posix_socket::BaseSocketGetSendBufferResult, fidl::Error>,
> + Send;
fn r#get_send_buffer(&self) -> Self::GetSendBufferResponseFut;
type SetReceiveBufferResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseSocketSetReceiveBufferResult,
fidl::Error,
>,
> + Send;
fn r#set_receive_buffer(&self, value_bytes: u64) -> Self::SetReceiveBufferResponseFut;
type GetReceiveBufferResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseSocketGetReceiveBufferResult,
fidl::Error,
>,
> + Send;
fn r#get_receive_buffer(&self) -> Self::GetReceiveBufferResponseFut;
type SetKeepAliveResponseFut: std::future::Future<
Output = Result<fidl_fuchsia_posix_socket::BaseSocketSetKeepAliveResult, fidl::Error>,
> + Send;
fn r#set_keep_alive(&self, value: bool) -> Self::SetKeepAliveResponseFut;
type GetKeepAliveResponseFut: std::future::Future<
Output = Result<fidl_fuchsia_posix_socket::BaseSocketGetKeepAliveResult, fidl::Error>,
> + Send;
fn r#get_keep_alive(&self) -> Self::GetKeepAliveResponseFut;
type SetOutOfBandInlineResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseSocketSetOutOfBandInlineResult,
fidl::Error,
>,
> + Send;
fn r#set_out_of_band_inline(&self, value: bool) -> Self::SetOutOfBandInlineResponseFut;
type GetOutOfBandInlineResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseSocketGetOutOfBandInlineResult,
fidl::Error,
>,
> + Send;
fn r#get_out_of_band_inline(&self) -> Self::GetOutOfBandInlineResponseFut;
type SetNoCheckResponseFut: std::future::Future<
Output = Result<fidl_fuchsia_posix_socket::BaseSocketSetNoCheckResult, fidl::Error>,
> + Send;
fn r#set_no_check(&self, value: bool) -> Self::SetNoCheckResponseFut;
type GetNoCheckResponseFut: std::future::Future<
Output = Result<fidl_fuchsia_posix_socket::BaseSocketGetNoCheckResult, fidl::Error>,
> + Send;
fn r#get_no_check(&self) -> Self::GetNoCheckResponseFut;
type SetLingerResponseFut: std::future::Future<
Output = Result<fidl_fuchsia_posix_socket::BaseSocketSetLingerResult, fidl::Error>,
> + Send;
fn r#set_linger(&self, linger: bool, length_secs: u32) -> Self::SetLingerResponseFut;
type GetLingerResponseFut: std::future::Future<
Output = Result<fidl_fuchsia_posix_socket::BaseSocketGetLingerResult, fidl::Error>,
> + Send;
fn r#get_linger(&self) -> Self::GetLingerResponseFut;
type SetReusePortResponseFut: std::future::Future<
Output = Result<fidl_fuchsia_posix_socket::BaseSocketSetReusePortResult, fidl::Error>,
> + Send;
fn r#set_reuse_port(&self, value: bool) -> Self::SetReusePortResponseFut;
type GetReusePortResponseFut: std::future::Future<
Output = Result<fidl_fuchsia_posix_socket::BaseSocketGetReusePortResult, fidl::Error>,
> + Send;
fn r#get_reuse_port(&self) -> Self::GetReusePortResponseFut;
type GetAcceptConnResponseFut: std::future::Future<
Output = Result<fidl_fuchsia_posix_socket::BaseSocketGetAcceptConnResult, fidl::Error>,
> + Send;
fn r#get_accept_conn(&self) -> Self::GetAcceptConnResponseFut;
type SetBindToDeviceResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseSocketSetBindToDeviceResult,
fidl::Error,
>,
> + Send;
fn r#set_bind_to_device(&self, value: &str) -> Self::SetBindToDeviceResponseFut;
type GetBindToDeviceResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseSocketGetBindToDeviceResult,
fidl::Error,
>,
> + Send;
fn r#get_bind_to_device(&self) -> Self::GetBindToDeviceResponseFut;
type SetBindToInterfaceIndexResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseSocketSetBindToInterfaceIndexResult,
fidl::Error,
>,
> + Send;
fn r#set_bind_to_interface_index(&self, value: u64)
-> Self::SetBindToInterfaceIndexResponseFut;
type GetBindToInterfaceIndexResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseSocketGetBindToInterfaceIndexResult,
fidl::Error,
>,
> + Send;
fn r#get_bind_to_interface_index(&self) -> Self::GetBindToInterfaceIndexResponseFut;
type SetTimestampResponseFut: std::future::Future<
Output = Result<fidl_fuchsia_posix_socket::BaseSocketSetTimestampResult, fidl::Error>,
> + Send;
fn r#set_timestamp(
&self,
value: fidl_fuchsia_posix_socket::TimestampOption,
) -> Self::SetTimestampResponseFut;
type GetTimestampResponseFut: std::future::Future<
Output = Result<fidl_fuchsia_posix_socket::BaseSocketGetTimestampResult, fidl::Error>,
> + Send;
fn r#get_timestamp(&self) -> Self::GetTimestampResponseFut;
type SetMarkResponseFut: std::future::Future<
Output = Result<fidl_fuchsia_posix_socket::BaseSocketSetMarkResult, fidl::Error>,
> + Send;
fn r#set_mark(
&self,
domain: fidl_fuchsia_posix_socket::MarkDomain,
mark: &fidl_fuchsia_posix_socket::OptionalUint32,
) -> Self::SetMarkResponseFut;
type GetMarkResponseFut: std::future::Future<
Output = Result<fidl_fuchsia_posix_socket::BaseSocketGetMarkResult, fidl::Error>,
> + Send;
fn r#get_mark(&self, domain: fidl_fuchsia_posix_socket::MarkDomain)
-> Self::GetMarkResponseFut;
type BindResponseFut: std::future::Future<
Output = Result<fidl_fuchsia_posix_socket::BaseNetworkSocketBindResult, fidl::Error>,
> + Send;
fn r#bind(&self, addr: &fidl_fuchsia_net::SocketAddress) -> Self::BindResponseFut;
type ConnectResponseFut: std::future::Future<
Output = Result<fidl_fuchsia_posix_socket::BaseNetworkSocketConnectResult, fidl::Error>,
> + Send;
fn r#connect(&self, addr: &fidl_fuchsia_net::SocketAddress) -> Self::ConnectResponseFut;
type DisconnectResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketDisconnectResult,
fidl::Error,
>,
> + Send;
fn r#disconnect(&self) -> Self::DisconnectResponseFut;
type GetSockNameResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetSockNameResult,
fidl::Error,
>,
> + Send;
fn r#get_sock_name(&self) -> Self::GetSockNameResponseFut;
type GetPeerNameResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetPeerNameResult,
fidl::Error,
>,
> + Send;
fn r#get_peer_name(&self) -> Self::GetPeerNameResponseFut;
type ShutdownResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketShutdownResult,
fidl::Error,
>,
> + Send;
fn r#shutdown(
&self,
mode: fidl_fuchsia_posix_socket::ShutdownMode,
) -> Self::ShutdownResponseFut;
type SetIpTypeOfServiceResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTypeOfServiceResult,
fidl::Error,
>,
> + Send;
fn r#set_ip_type_of_service(&self, value: u8) -> Self::SetIpTypeOfServiceResponseFut;
type GetIpTypeOfServiceResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTypeOfServiceResult,
fidl::Error,
>,
> + Send;
fn r#get_ip_type_of_service(&self) -> Self::GetIpTypeOfServiceResponseFut;
type SetIpTtlResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTtlResult,
fidl::Error,
>,
> + Send;
fn r#set_ip_ttl(
&self,
value: &fidl_fuchsia_posix_socket::OptionalUint8,
) -> Self::SetIpTtlResponseFut;
type GetIpTtlResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTtlResult,
fidl::Error,
>,
> + Send;
fn r#get_ip_ttl(&self) -> Self::GetIpTtlResponseFut;
type SetIpPacketInfoResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpPacketInfoResult,
fidl::Error,
>,
> + Send;
fn r#set_ip_packet_info(&self, value: bool) -> Self::SetIpPacketInfoResponseFut;
type GetIpPacketInfoResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpPacketInfoResult,
fidl::Error,
>,
> + Send;
fn r#get_ip_packet_info(&self) -> Self::GetIpPacketInfoResponseFut;
type SetIpReceiveTypeOfServiceResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTypeOfServiceResult,
fidl::Error,
>,
> + Send;
fn r#set_ip_receive_type_of_service(
&self,
value: bool,
) -> Self::SetIpReceiveTypeOfServiceResponseFut;
type GetIpReceiveTypeOfServiceResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTypeOfServiceResult,
fidl::Error,
>,
> + Send;
fn r#get_ip_receive_type_of_service(&self) -> Self::GetIpReceiveTypeOfServiceResponseFut;
type SetIpReceiveTtlResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTtlResult,
fidl::Error,
>,
> + Send;
fn r#set_ip_receive_ttl(&self, value: bool) -> Self::SetIpReceiveTtlResponseFut;
type GetIpReceiveTtlResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTtlResult,
fidl::Error,
>,
> + Send;
fn r#get_ip_receive_ttl(&self) -> Self::GetIpReceiveTtlResponseFut;
type SetIpMulticastInterfaceResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastInterfaceResult,
fidl::Error,
>,
> + Send;
fn r#set_ip_multicast_interface(
&self,
iface: u64,
address: &fidl_fuchsia_net::Ipv4Address,
) -> Self::SetIpMulticastInterfaceResponseFut;
type GetIpMulticastInterfaceResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastInterfaceResult,
fidl::Error,
>,
> + Send;
fn r#get_ip_multicast_interface(&self) -> Self::GetIpMulticastInterfaceResponseFut;
type SetIpMulticastTtlResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastTtlResult,
fidl::Error,
>,
> + Send;
fn r#set_ip_multicast_ttl(
&self,
value: &fidl_fuchsia_posix_socket::OptionalUint8,
) -> Self::SetIpMulticastTtlResponseFut;
type GetIpMulticastTtlResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastTtlResult,
fidl::Error,
>,
> + Send;
fn r#get_ip_multicast_ttl(&self) -> Self::GetIpMulticastTtlResponseFut;
type SetIpMulticastLoopbackResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastLoopbackResult,
fidl::Error,
>,
> + Send;
fn r#set_ip_multicast_loopback(&self, value: bool) -> Self::SetIpMulticastLoopbackResponseFut;
type GetIpMulticastLoopbackResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastLoopbackResult,
fidl::Error,
>,
> + Send;
fn r#get_ip_multicast_loopback(&self) -> Self::GetIpMulticastLoopbackResponseFut;
type AddIpMembershipResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpMembershipResult,
fidl::Error,
>,
> + Send;
fn r#add_ip_membership(
&self,
membership: &fidl_fuchsia_posix_socket::IpMulticastMembership,
) -> Self::AddIpMembershipResponseFut;
type DropIpMembershipResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpMembershipResult,
fidl::Error,
>,
> + Send;
fn r#drop_ip_membership(
&self,
membership: &fidl_fuchsia_posix_socket::IpMulticastMembership,
) -> Self::DropIpMembershipResponseFut;
type SetIpTransparentResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTransparentResult,
fidl::Error,
>,
> + Send;
fn r#set_ip_transparent(&self, value: bool) -> Self::SetIpTransparentResponseFut;
type GetIpTransparentResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTransparentResult,
fidl::Error,
>,
> + Send;
fn r#get_ip_transparent(&self) -> Self::GetIpTransparentResponseFut;
type SetIpReceiveOriginalDestinationAddressResponseFut: std::future::Future<Output = Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveOriginalDestinationAddressResult, fidl::Error>> + Send;
fn r#set_ip_receive_original_destination_address(
&self,
value: bool,
) -> Self::SetIpReceiveOriginalDestinationAddressResponseFut;
type GetIpReceiveOriginalDestinationAddressResponseFut: std::future::Future<Output = Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveOriginalDestinationAddressResult, fidl::Error>> + Send;
fn r#get_ip_receive_original_destination_address(
&self,
) -> Self::GetIpReceiveOriginalDestinationAddressResponseFut;
type AddIpv6MembershipResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpv6MembershipResult,
fidl::Error,
>,
> + Send;
fn r#add_ipv6_membership(
&self,
membership: &fidl_fuchsia_posix_socket::Ipv6MulticastMembership,
) -> Self::AddIpv6MembershipResponseFut;
type DropIpv6MembershipResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpv6MembershipResult,
fidl::Error,
>,
> + Send;
fn r#drop_ipv6_membership(
&self,
membership: &fidl_fuchsia_posix_socket::Ipv6MulticastMembership,
) -> Self::DropIpv6MembershipResponseFut;
type SetIpv6MulticastInterfaceResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastInterfaceResult,
fidl::Error,
>,
> + Send;
fn r#set_ipv6_multicast_interface(
&self,
value: u64,
) -> Self::SetIpv6MulticastInterfaceResponseFut;
type GetIpv6MulticastInterfaceResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastInterfaceResult,
fidl::Error,
>,
> + Send;
fn r#get_ipv6_multicast_interface(&self) -> Self::GetIpv6MulticastInterfaceResponseFut;
type SetIpv6UnicastHopsResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6UnicastHopsResult,
fidl::Error,
>,
> + Send;
fn r#set_ipv6_unicast_hops(
&self,
value: &fidl_fuchsia_posix_socket::OptionalUint8,
) -> Self::SetIpv6UnicastHopsResponseFut;
type GetIpv6UnicastHopsResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6UnicastHopsResult,
fidl::Error,
>,
> + Send;
fn r#get_ipv6_unicast_hops(&self) -> Self::GetIpv6UnicastHopsResponseFut;
type SetIpv6ReceiveHopLimitResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveHopLimitResult,
fidl::Error,
>,
> + Send;
fn r#set_ipv6_receive_hop_limit(&self, value: bool) -> Self::SetIpv6ReceiveHopLimitResponseFut;
type GetIpv6ReceiveHopLimitResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveHopLimitResult,
fidl::Error,
>,
> + Send;
fn r#get_ipv6_receive_hop_limit(&self) -> Self::GetIpv6ReceiveHopLimitResponseFut;
type SetIpv6MulticastHopsResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastHopsResult,
fidl::Error,
>,
> + Send;
fn r#set_ipv6_multicast_hops(
&self,
value: &fidl_fuchsia_posix_socket::OptionalUint8,
) -> Self::SetIpv6MulticastHopsResponseFut;
type GetIpv6MulticastHopsResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastHopsResult,
fidl::Error,
>,
> + Send;
fn r#get_ipv6_multicast_hops(&self) -> Self::GetIpv6MulticastHopsResponseFut;
type SetIpv6MulticastLoopbackResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastLoopbackResult,
fidl::Error,
>,
> + Send;
fn r#set_ipv6_multicast_loopback(
&self,
value: bool,
) -> Self::SetIpv6MulticastLoopbackResponseFut;
type GetIpv6MulticastLoopbackResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastLoopbackResult,
fidl::Error,
>,
> + Send;
fn r#get_ipv6_multicast_loopback(&self) -> Self::GetIpv6MulticastLoopbackResponseFut;
type SetIpv6OnlyResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6OnlyResult,
fidl::Error,
>,
> + Send;
fn r#set_ipv6_only(&self, value: bool) -> Self::SetIpv6OnlyResponseFut;
type GetIpv6OnlyResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6OnlyResult,
fidl::Error,
>,
> + Send;
fn r#get_ipv6_only(&self) -> Self::GetIpv6OnlyResponseFut;
type SetIpv6ReceiveTrafficClassResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveTrafficClassResult,
fidl::Error,
>,
> + Send;
fn r#set_ipv6_receive_traffic_class(
&self,
value: bool,
) -> Self::SetIpv6ReceiveTrafficClassResponseFut;
type GetIpv6ReceiveTrafficClassResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveTrafficClassResult,
fidl::Error,
>,
> + Send;
fn r#get_ipv6_receive_traffic_class(&self) -> Self::GetIpv6ReceiveTrafficClassResponseFut;
type SetIpv6TrafficClassResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6TrafficClassResult,
fidl::Error,
>,
> + Send;
fn r#set_ipv6_traffic_class(
&self,
value: &fidl_fuchsia_posix_socket::OptionalUint8,
) -> Self::SetIpv6TrafficClassResponseFut;
type GetIpv6TrafficClassResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6TrafficClassResult,
fidl::Error,
>,
> + Send;
fn r#get_ipv6_traffic_class(&self) -> Self::GetIpv6TrafficClassResponseFut;
type SetIpv6ReceivePacketInfoResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceivePacketInfoResult,
fidl::Error,
>,
> + Send;
fn r#set_ipv6_receive_packet_info(
&self,
value: bool,
) -> Self::SetIpv6ReceivePacketInfoResponseFut;
type GetIpv6ReceivePacketInfoResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceivePacketInfoResult,
fidl::Error,
>,
> + Send;
fn r#get_ipv6_receive_packet_info(&self) -> Self::GetIpv6ReceivePacketInfoResponseFut;
type GetOriginalDestinationResponseFut: std::future::Future<
Output = Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetOriginalDestinationResult,
fidl::Error,
>,
> + Send;
fn r#get_original_destination(&self) -> Self::GetOriginalDestinationResponseFut;
type DescribeResponseFut: std::future::Future<Output = Result<SocketDescribeResponse, fidl::Error>>
+ Send;
fn r#describe(&self) -> Self::DescribeResponseFut;
type RecvMsgResponseFut: std::future::Future<Output = Result<SocketRecvMsgResult, fidl::Error>>
+ Send;
fn r#recv_msg(
&self,
want_addr: bool,
data_len: u32,
want_control: bool,
flags: fidl_fuchsia_posix_socket::RecvMsgFlags,
) -> Self::RecvMsgResponseFut;
type SendMsgResponseFut: std::future::Future<Output = Result<SocketSendMsgResult, fidl::Error>>
+ Send;
fn r#send_msg(
&self,
addr: Option<&fidl_fuchsia_net::SocketAddress>,
data: &[u8],
control: &fidl_fuchsia_posix_socket::NetworkSocketSendControlData,
flags: fidl_fuchsia_posix_socket::SendMsgFlags,
) -> Self::SendMsgResponseFut;
type GetInfoResponseFut: std::future::Future<Output = Result<SocketGetInfoResult, fidl::Error>>
+ Send;
fn r#get_info(&self) -> Self::GetInfoResponseFut;
type SetIpHeaderIncludedResponseFut: std::future::Future<Output = Result<SocketSetIpHeaderIncludedResult, fidl::Error>>
+ Send;
fn r#set_ip_header_included(&self, value: bool) -> Self::SetIpHeaderIncludedResponseFut;
type GetIpHeaderIncludedResponseFut: std::future::Future<Output = Result<SocketGetIpHeaderIncludedResult, fidl::Error>>
+ Send;
fn r#get_ip_header_included(&self) -> Self::GetIpHeaderIncludedResponseFut;
type SetIcmpv6FilterResponseFut: std::future::Future<Output = Result<SocketSetIcmpv6FilterResult, fidl::Error>>
+ Send;
fn r#set_icmpv6_filter(&self, filter: &Icmpv6Filter) -> Self::SetIcmpv6FilterResponseFut;
type GetIcmpv6FilterResponseFut: std::future::Future<Output = Result<SocketGetIcmpv6FilterResult, fidl::Error>>
+ Send;
fn r#get_icmpv6_filter(&self) -> Self::GetIcmpv6FilterResponseFut;
type SetIpv6ChecksumResponseFut: std::future::Future<Output = Result<SocketSetIpv6ChecksumResult, fidl::Error>>
+ Send;
fn r#set_ipv6_checksum(
&self,
config: &Ipv6ChecksumConfiguration,
) -> Self::SetIpv6ChecksumResponseFut;
type GetIpv6ChecksumResponseFut: std::future::Future<Output = Result<SocketGetIpv6ChecksumResult, fidl::Error>>
+ Send;
fn r#get_ipv6_checksum(&self) -> Self::GetIpv6ChecksumResponseFut;
}
#[derive(Debug)]
#[cfg(target_os = "fuchsia")]
pub struct SocketSynchronousProxy {
client: fidl::client::sync::Client,
}
#[cfg(target_os = "fuchsia")]
impl fidl::endpoints::SynchronousProxy for SocketSynchronousProxy {
type Proxy = SocketProxy;
type Protocol = SocketMarker;
fn from_channel(inner: fidl::Channel) -> Self {
Self::new(inner)
}
fn into_channel(self) -> fidl::Channel {
self.client.into_channel()
}
fn as_channel(&self) -> &fidl::Channel {
self.client.as_channel()
}
}
#[cfg(target_os = "fuchsia")]
impl SocketSynchronousProxy {
pub fn new(channel: fidl::Channel) -> Self {
let protocol_name = <SocketMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
Self { client: fidl::client::sync::Client::new(channel, protocol_name) }
}
pub fn into_channel(self) -> fidl::Channel {
self.client.into_channel()
}
pub fn wait_for_event(
&self,
deadline: zx::MonotonicInstant,
) -> Result<SocketEvent, fidl::Error> {
SocketEvent::decode(self.client.wait_for_event(deadline)?)
}
pub fn r#clone(
&self,
mut request: fidl::endpoints::ServerEnd<fidl_fuchsia_unknown::CloneableMarker>,
) -> Result<(), fidl::Error> {
self.client.send::<fidl_fuchsia_unknown::CloneableCloneRequest>(
(request,),
0x20d8a7aba2168a79,
fidl::encoding::DynamicFlags::empty(),
)
}
pub fn r#close(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_unknown::CloseableCloseResult, fidl::Error> {
let _response = self.client.send_query::<
fidl::encoding::EmptyPayload,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
>(
(),
0x5ac5d459ad7f657e,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#query(&self, ___deadline: zx::MonotonicInstant) -> Result<Vec<u8>, fidl::Error> {
let _response = self.client.send_query::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_unknown::QueryableQueryResponse,
>(
(),
0x2658edee9decfc06,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.protocol)
}
pub fn r#set_reuse_address(
&self,
mut value: bool,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetReuseAddressResult, fidl::Error> {
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseSocketSetReuseAddressRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(value,),
0x1fd74ee8b9a4a876,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_reuse_address(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetReuseAddressResult, fidl::Error> {
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetReuseAddressResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x67b7206b8d1bc0a5, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#get_error(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetErrorResult, fidl::Error> {
let _response =
self.client.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
(),
0x5aad39b33e5f6ebb,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#set_broadcast(
&self,
mut value: bool,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetBroadcastResult, fidl::Error> {
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseSocketSetBroadcastRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(value,),
0x6023e081ce3cd947,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_broadcast(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetBroadcastResult, fidl::Error> {
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetBroadcastResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x68796fc556f9780d, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#set_send_buffer(
&self,
mut value_bytes: u64,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetSendBufferResult, fidl::Error> {
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseSocketSetSendBufferRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(value_bytes,),
0x756eac32d73a7a70,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_send_buffer(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetSendBufferResult, fidl::Error> {
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetSendBufferResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x78a52fd9c7b2410b, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value_bytes))
}
pub fn r#set_receive_buffer(
&self,
mut value_bytes: u64,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetReceiveBufferResult, fidl::Error> {
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseSocketSetReceiveBufferRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(value_bytes,),
0x6b0cf2f1919c7001,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_receive_buffer(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetReceiveBufferResult, fidl::Error> {
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetReceiveBufferResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x14c1a4b64f709e5c, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value_bytes))
}
pub fn r#set_keep_alive(
&self,
mut value: bool,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetKeepAliveResult, fidl::Error> {
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseSocketSetKeepAliveRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(value,),
0x572df8f0b920d2c7,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_keep_alive(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetKeepAliveResult, fidl::Error> {
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetKeepAliveResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x2dd29d3215f2c9d2, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#set_out_of_band_inline(
&self,
mut value: bool,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetOutOfBandInlineResult, fidl::Error> {
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseSocketSetOutOfBandInlineRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(value,),
0x3ecb49968bee439,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_out_of_band_inline(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetOutOfBandInlineResult, fidl::Error> {
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetOutOfBandInlineResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x348c1ab3aeca1745, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#set_no_check(
&self,
mut value: bool,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetNoCheckResult, fidl::Error> {
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseSocketSetNoCheckRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(value,),
0x6bbf00c53a4c78c2,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_no_check(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetNoCheckResult, fidl::Error> {
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetNoCheckResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x2cd4249286417694, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#set_linger(
&self,
mut linger: bool,
mut length_secs: u32,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetLingerResult, fidl::Error> {
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseSocketSetLingerRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(linger, length_secs,),
0x45386351246e998e,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_linger(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetLingerResult, fidl::Error> {
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetLingerResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x48eb20fc5ccb0e45, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| (x.linger, x.length_secs)))
}
pub fn r#set_reuse_port(
&self,
mut value: bool,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetReusePortResult, fidl::Error> {
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseSocketSetReusePortRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(value,),
0x24dd3e5cb36d9ccb,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_reuse_port(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetReusePortResult, fidl::Error> {
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetReusePortResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x7a112c1ab54ff828, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#get_accept_conn(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetAcceptConnResult, fidl::Error> {
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetAcceptConnResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x67ce6db6c2ec8966, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#set_bind_to_device(
&self,
mut value: &str,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetBindToDeviceResult, fidl::Error> {
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseSocketSetBindToDeviceRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(value,),
0x2118b483f28aafc4,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_bind_to_device(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetBindToDeviceResult, fidl::Error> {
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetBindToDeviceResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x1ab1fbf0ef7906c8, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#set_bind_to_interface_index(
&self,
mut value: u64,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetBindToInterfaceIndexResult, fidl::Error>
{
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseSocketSetBindToInterfaceIndexRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(value,),
0x6e387a0def00821,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_bind_to_interface_index(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetBindToInterfaceIndexResult, fidl::Error>
{
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetBindToInterfaceIndexResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x59c31dd3e3078295, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#set_timestamp(
&self,
mut value: fidl_fuchsia_posix_socket::TimestampOption,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetTimestampResult, fidl::Error> {
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseSocketSetTimestampRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(value,),
0x285d6516c263d839,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_timestamp(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetTimestampResult, fidl::Error> {
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetTimestampResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x49f2fffbbcc2bd27, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#set_mark(
&self,
mut domain: fidl_fuchsia_posix_socket::MarkDomain,
mut mark: &fidl_fuchsia_posix_socket::OptionalUint32,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetMarkResult, fidl::Error> {
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseSocketSetMarkRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(domain, mark,),
0x6ead6de09f653236,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_mark(
&self,
mut domain: fidl_fuchsia_posix_socket::MarkDomain,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetMarkResult, fidl::Error> {
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseSocketGetMarkRequest,
fidl::encoding::ResultType<fidl_fuchsia_posix_socket::BaseSocketGetMarkResponse, fidl_fuchsia_posix::Errno>,
>(
(domain,),
0x57a2752c61d93d47,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x.mark))
}
pub fn r#bind(
&self,
mut addr: &fidl_fuchsia_net::SocketAddress,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketBindResult, fidl::Error> {
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseNetworkSocketBindRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(addr,),
0x4bc6400ae92125d,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#connect(
&self,
mut addr: &fidl_fuchsia_net::SocketAddress,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketConnectResult, fidl::Error> {
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseNetworkSocketConnectRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(addr,),
0x5f05f19bfdd38871,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#disconnect(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketDisconnectResult, fidl::Error> {
let _response =
self.client.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
(),
0x74e63b91f7b29b2,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_sock_name(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetSockNameResult, fidl::Error> {
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetSockNameResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x475f23f84a1a4f85, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.addr))
}
pub fn r#get_peer_name(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetPeerNameResult, fidl::Error> {
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetPeerNameResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x1ffecf4bd5b6432e, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.addr))
}
pub fn r#shutdown(
&self,
mut mode: fidl_fuchsia_posix_socket::ShutdownMode,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketShutdownResult, fidl::Error> {
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseNetworkSocketShutdownRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(mode,),
0x247f38b6db68c336,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#set_ip_type_of_service(
&self,
mut value: u8,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTypeOfServiceResult, fidl::Error>
{
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTypeOfServiceRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(value,),
0x995c600475b6d46,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_ip_type_of_service(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTypeOfServiceResult, fidl::Error>
{
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTypeOfServiceResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x3814a04259f75fcb, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#set_ip_ttl(
&self,
mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTtlResult, fidl::Error> {
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTtlRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(value,),
0x29e2424b433ae1ef,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_ip_ttl(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTtlResult, fidl::Error> {
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTtlResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x47e47fa1f24da471, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#set_ip_packet_info(
&self,
mut value: bool,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpPacketInfoResult, fidl::Error>
{
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpPacketInfoRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(value,),
0x392d16bee20c0e16,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_ip_packet_info(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpPacketInfoResult, fidl::Error>
{
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpPacketInfoResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x54b505f242280740, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#set_ip_receive_type_of_service(
&self,
mut value: bool,
___deadline: zx::MonotonicInstant,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTypeOfServiceResult,
fidl::Error,
> {
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTypeOfServiceRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(value,),
0x6c4f6714995f84ef,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_ip_receive_type_of_service(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTypeOfServiceResult,
fidl::Error,
> {
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTypeOfServiceResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x4158ba7dc2795960, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#set_ip_receive_ttl(
&self,
mut value: bool,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTtlResult, fidl::Error>
{
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTtlRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(value,),
0x46f15be0ce0ab82b,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_ip_receive_ttl(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTtlResult, fidl::Error>
{
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTtlResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x678ddd5a5dfa2eb5, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#set_ip_multicast_interface(
&self,
mut iface: u64,
mut address: &fidl_fuchsia_net::Ipv4Address,
___deadline: zx::MonotonicInstant,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastInterfaceResult,
fidl::Error,
> {
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastInterfaceRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(iface, address,),
0x752fbfa9b12befe,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_ip_multicast_interface(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastInterfaceResult,
fidl::Error,
> {
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastInterfaceResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x320bd14c4df046c4, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#set_ip_multicast_ttl(
&self,
mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastTtlResult, fidl::Error>
{
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastTtlRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(value,),
0x63134d53772916a1,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_ip_multicast_ttl(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastTtlResult, fidl::Error>
{
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastTtlResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x4665cd378f39e1a, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#set_ip_multicast_loopback(
&self,
mut value: bool,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastLoopbackResult, fidl::Error>
{
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastLoopbackRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(value,),
0x20c55c11f00943ea,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_ip_multicast_loopback(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastLoopbackResult, fidl::Error>
{
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastLoopbackResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x3b6b26ff558298f2, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#add_ip_membership(
&self,
mut membership: &fidl_fuchsia_posix_socket::IpMulticastMembership,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpMembershipResult, fidl::Error>
{
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpMembershipRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(membership,),
0x76bc7df115a3b4d0,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#drop_ip_membership(
&self,
mut membership: &fidl_fuchsia_posix_socket::IpMulticastMembership,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpMembershipResult, fidl::Error>
{
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpMembershipRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(membership,),
0x2888f3099188d03,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#set_ip_transparent(
&self,
mut value: bool,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTransparentResult, fidl::Error>
{
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTransparentRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(value,),
0x1ae532b0c066e3a0,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_ip_transparent(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTransparentResult, fidl::Error>
{
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTransparentResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x51d43695962ebfb5, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#set_ip_receive_original_destination_address(
&self,
mut value: bool,
___deadline: zx::MonotonicInstant,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveOriginalDestinationAddressResult,
fidl::Error,
> {
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveOriginalDestinationAddressRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(value,),
0x4722b4ce52f7840,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_ip_receive_original_destination_address(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveOriginalDestinationAddressResult,
fidl::Error,
> {
let _response = self.client.send_query::<
fidl::encoding::EmptyPayload,
fidl::encoding::ResultType<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveOriginalDestinationAddressResponse, fidl_fuchsia_posix::Errno>,
>(
(),
0x2a0e7dc5d6bfdfe9,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#add_ipv6_membership(
&self,
mut membership: &fidl_fuchsia_posix_socket::Ipv6MulticastMembership,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpv6MembershipResult, fidl::Error>
{
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpv6MembershipRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(membership,),
0x7c94727acb4ea4b3,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#drop_ipv6_membership(
&self,
mut membership: &fidl_fuchsia_posix_socket::Ipv6MulticastMembership,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpv6MembershipResult, fidl::Error>
{
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpv6MembershipRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(membership,),
0x42104c70ccaba304,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#set_ipv6_multicast_interface(
&self,
mut value: u64,
___deadline: zx::MonotonicInstant,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastInterfaceResult,
fidl::Error,
> {
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastInterfaceRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(value,),
0x135f76db3774ab3b,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_ipv6_multicast_interface(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastInterfaceResult,
fidl::Error,
> {
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastInterfaceResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x1f26fcdd348f1882, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#set_ipv6_unicast_hops(
&self,
mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6UnicastHopsResult, fidl::Error>
{
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6UnicastHopsRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(value,),
0x157d51e98f462859,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_ipv6_unicast_hops(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6UnicastHopsResult, fidl::Error>
{
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6UnicastHopsResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x21f4641cad8bd8d2, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#set_ipv6_receive_hop_limit(
&self,
mut value: bool,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveHopLimitResult, fidl::Error>
{
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveHopLimitRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(value,),
0x5c24808ed2e84a1e,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_ipv6_receive_hop_limit(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveHopLimitResult, fidl::Error>
{
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveHopLimitResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x341e06689885b4c0, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#set_ipv6_multicast_hops(
&self,
mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastHopsResult, fidl::Error>
{
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastHopsRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(value,),
0x25b9cd4d181f82c1,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_ipv6_multicast_hops(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastHopsResult, fidl::Error>
{
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastHopsResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x52916948a365012a, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#set_ipv6_multicast_loopback(
&self,
mut value: bool,
___deadline: zx::MonotonicInstant,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastLoopbackResult,
fidl::Error,
> {
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastLoopbackRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(value,),
0x55701c409ff41b40,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_ipv6_multicast_loopback(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastLoopbackResult,
fidl::Error,
> {
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastLoopbackResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x4415b701fde319c3, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#set_ipv6_only(
&self,
mut value: bool,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6OnlyResult, fidl::Error> {
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6OnlyRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(value,),
0x4873f1364758cbba,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_ipv6_only(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6OnlyResult, fidl::Error> {
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6OnlyResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x4aa3340a1a26b89c, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#set_ipv6_receive_traffic_class(
&self,
mut value: bool,
___deadline: zx::MonotonicInstant,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveTrafficClassResult,
fidl::Error,
> {
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveTrafficClassRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(value,),
0x58f07c8788d099a0,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_ipv6_receive_traffic_class(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveTrafficClassResult,
fidl::Error,
> {
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveTrafficClassResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x2e334df1da553ffa, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#set_ipv6_traffic_class(
&self,
mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6TrafficClassResult, fidl::Error>
{
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6TrafficClassRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(value,),
0x6af077800c5a0b4f,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_ipv6_traffic_class(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6TrafficClassResult, fidl::Error>
{
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6TrafficClassResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x6baf6eed8fc2f04, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#set_ipv6_receive_packet_info(
&self,
mut value: bool,
___deadline: zx::MonotonicInstant,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceivePacketInfoResult,
fidl::Error,
> {
let _response = self.client.send_query::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceivePacketInfoRequest,
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
>(
(value,),
0x19259775b1a92768,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_ipv6_receive_packet_info(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceivePacketInfoResult,
fidl::Error,
> {
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceivePacketInfoResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x7acd4a2775baec75, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#get_original_destination(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetOriginalDestinationResult, fidl::Error>
{
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetOriginalDestinationResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x38bf28f0dafdbac0, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#describe(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<SocketDescribeResponse, fidl::Error> {
let _response =
self.client.send_query::<fidl::encoding::EmptyPayload, SocketDescribeResponse>(
(),
0x335706eccf54a135,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response)
}
pub fn r#recv_msg(
&self,
mut want_addr: bool,
mut data_len: u32,
mut want_control: bool,
mut flags: fidl_fuchsia_posix_socket::RecvMsgFlags,
___deadline: zx::MonotonicInstant,
) -> Result<SocketRecvMsgResult, fidl::Error> {
let _response = self.client.send_query::<SocketRecvMsgRequest, fidl::encoding::ResultType<
SocketRecvMsgResponse,
fidl_fuchsia_posix::Errno,
>>(
(want_addr, data_len, want_control, flags),
0x1dfb695351d3aa1d,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| (x.addr, x.data, x.control, x.truncated)))
}
pub fn r#send_msg(
&self,
mut addr: Option<&fidl_fuchsia_net::SocketAddress>,
mut data: &[u8],
mut control: &fidl_fuchsia_posix_socket::NetworkSocketSendControlData,
mut flags: fidl_fuchsia_posix_socket::SendMsgFlags,
___deadline: zx::MonotonicInstant,
) -> Result<SocketSendMsgResult, fidl::Error> {
let _response = self.client.send_query::<SocketSendMsgRequest, fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
(addr, data, control, flags),
0x2cf1eac9a7fc8958,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_info(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<SocketGetInfoResult, fidl::Error> {
let _response =
self.client.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
SocketGetInfoResponse,
fidl_fuchsia_posix::Errno,
>>(
(),
0x39676f75aec339ba,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| (x.domain, x.proto)))
}
pub fn r#set_ip_header_included(
&self,
mut value: bool,
___deadline: zx::MonotonicInstant,
) -> Result<SocketSetIpHeaderIncludedResult, fidl::Error> {
let _response =
self.client.send_query::<SocketSetIpHeaderIncludedRequest, fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
(value,),
0x5d06a606d95e8f3,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_ip_header_included(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<SocketGetIpHeaderIncludedResult, fidl::Error> {
let _response = self
.client
.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
SocketGetIpHeaderIncludedResponse,
fidl_fuchsia_posix::Errno,
>>(
(), 0x76125ad1f4d175f6, fidl::encoding::DynamicFlags::empty(), ___deadline
)?;
Ok(_response.map(|x| x.value))
}
pub fn r#set_icmpv6_filter(
&self,
mut filter: &Icmpv6Filter,
___deadline: zx::MonotonicInstant,
) -> Result<SocketSetIcmpv6FilterResult, fidl::Error> {
let _response =
self.client.send_query::<SocketSetIcmpv6FilterRequest, fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
(filter,),
0x4ebea92a43ae68a9,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_icmpv6_filter(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<SocketGetIcmpv6FilterResult, fidl::Error> {
let _response =
self.client.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
SocketGetIcmpv6FilterResponse,
fidl_fuchsia_posix::Errno,
>>(
(),
0x43bd4f3bc0970ace,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x.filter))
}
pub fn r#set_ipv6_checksum(
&self,
mut config: &Ipv6ChecksumConfiguration,
___deadline: zx::MonotonicInstant,
) -> Result<SocketSetIpv6ChecksumResult, fidl::Error> {
let _response =
self.client.send_query::<SocketSetIpv6ChecksumRequest, fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
(config,),
0x18b7809577199cb4,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x))
}
pub fn r#get_ipv6_checksum(
&self,
___deadline: zx::MonotonicInstant,
) -> Result<SocketGetIpv6ChecksumResult, fidl::Error> {
let _response =
self.client.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
SocketGetIpv6ChecksumResponse,
fidl_fuchsia_posix::Errno,
>>(
(),
0x1847bf5b2d263dd,
fidl::encoding::DynamicFlags::empty(),
___deadline,
)?;
Ok(_response.map(|x| x.config))
}
}
#[derive(Debug, Clone)]
pub struct SocketProxy {
client: fidl::client::Client<fidl::encoding::DefaultFuchsiaResourceDialect>,
}
impl fidl::endpoints::Proxy for SocketProxy {
type Protocol = SocketMarker;
fn from_channel(inner: ::fidl::AsyncChannel) -> Self {
Self::new(inner)
}
fn into_channel(self) -> Result<::fidl::AsyncChannel, Self> {
self.client.into_channel().map_err(|client| Self { client })
}
fn as_channel(&self) -> &::fidl::AsyncChannel {
self.client.as_channel()
}
}
impl SocketProxy {
pub fn new(channel: ::fidl::AsyncChannel) -> Self {
let protocol_name = <SocketMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
Self { client: fidl::client::Client::new(channel, protocol_name) }
}
pub fn take_event_stream(&self) -> SocketEventStream {
SocketEventStream { event_receiver: self.client.take_event_receiver() }
}
pub fn r#clone(
&self,
mut request: fidl::endpoints::ServerEnd<fidl_fuchsia_unknown::CloneableMarker>,
) -> Result<(), fidl::Error> {
SocketProxyInterface::r#clone(self, request)
}
pub fn r#close(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_unknown::CloseableCloseResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#close(self)
}
pub fn r#query(
&self,
) -> fidl::client::QueryResponseFut<Vec<u8>, fidl::encoding::DefaultFuchsiaResourceDialect>
{
SocketProxyInterface::r#query(self)
}
pub fn r#set_reuse_address(
&self,
mut value: bool,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketSetReuseAddressResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_reuse_address(self, value)
}
pub fn r#get_reuse_address(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetReuseAddressResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_reuse_address(self)
}
pub fn r#get_error(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetErrorResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_error(self)
}
pub fn r#set_broadcast(
&self,
mut value: bool,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketSetBroadcastResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_broadcast(self, value)
}
pub fn r#get_broadcast(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetBroadcastResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_broadcast(self)
}
pub fn r#set_send_buffer(
&self,
mut value_bytes: u64,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketSetSendBufferResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_send_buffer(self, value_bytes)
}
pub fn r#get_send_buffer(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetSendBufferResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_send_buffer(self)
}
pub fn r#set_receive_buffer(
&self,
mut value_bytes: u64,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketSetReceiveBufferResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_receive_buffer(self, value_bytes)
}
pub fn r#get_receive_buffer(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetReceiveBufferResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_receive_buffer(self)
}
pub fn r#set_keep_alive(
&self,
mut value: bool,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketSetKeepAliveResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_keep_alive(self, value)
}
pub fn r#get_keep_alive(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetKeepAliveResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_keep_alive(self)
}
pub fn r#set_out_of_band_inline(
&self,
mut value: bool,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketSetOutOfBandInlineResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_out_of_band_inline(self, value)
}
pub fn r#get_out_of_band_inline(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetOutOfBandInlineResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_out_of_band_inline(self)
}
pub fn r#set_no_check(
&self,
mut value: bool,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketSetNoCheckResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_no_check(self, value)
}
pub fn r#get_no_check(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetNoCheckResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_no_check(self)
}
pub fn r#set_linger(
&self,
mut linger: bool,
mut length_secs: u32,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketSetLingerResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_linger(self, linger, length_secs)
}
pub fn r#get_linger(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetLingerResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_linger(self)
}
pub fn r#set_reuse_port(
&self,
mut value: bool,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketSetReusePortResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_reuse_port(self, value)
}
pub fn r#get_reuse_port(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetReusePortResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_reuse_port(self)
}
pub fn r#get_accept_conn(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetAcceptConnResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_accept_conn(self)
}
pub fn r#set_bind_to_device(
&self,
mut value: &str,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketSetBindToDeviceResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_bind_to_device(self, value)
}
pub fn r#get_bind_to_device(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetBindToDeviceResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_bind_to_device(self)
}
pub fn r#set_bind_to_interface_index(
&self,
mut value: u64,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketSetBindToInterfaceIndexResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_bind_to_interface_index(self, value)
}
pub fn r#get_bind_to_interface_index(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetBindToInterfaceIndexResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_bind_to_interface_index(self)
}
pub fn r#set_timestamp(
&self,
mut value: fidl_fuchsia_posix_socket::TimestampOption,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketSetTimestampResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_timestamp(self, value)
}
pub fn r#get_timestamp(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetTimestampResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_timestamp(self)
}
pub fn r#set_mark(
&self,
mut domain: fidl_fuchsia_posix_socket::MarkDomain,
mut mark: &fidl_fuchsia_posix_socket::OptionalUint32,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketSetMarkResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_mark(self, domain, mark)
}
pub fn r#get_mark(
&self,
mut domain: fidl_fuchsia_posix_socket::MarkDomain,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetMarkResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_mark(self, domain)
}
pub fn r#bind(
&self,
mut addr: &fidl_fuchsia_net::SocketAddress,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketBindResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#bind(self, addr)
}
pub fn r#connect(
&self,
mut addr: &fidl_fuchsia_net::SocketAddress,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketConnectResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#connect(self, addr)
}
pub fn r#disconnect(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketDisconnectResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#disconnect(self)
}
pub fn r#get_sock_name(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetSockNameResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_sock_name(self)
}
pub fn r#get_peer_name(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetPeerNameResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_peer_name(self)
}
pub fn r#shutdown(
&self,
mut mode: fidl_fuchsia_posix_socket::ShutdownMode,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketShutdownResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#shutdown(self, mode)
}
pub fn r#set_ip_type_of_service(
&self,
mut value: u8,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTypeOfServiceResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_ip_type_of_service(self, value)
}
pub fn r#get_ip_type_of_service(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTypeOfServiceResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_ip_type_of_service(self)
}
pub fn r#set_ip_ttl(
&self,
mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTtlResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_ip_ttl(self, value)
}
pub fn r#get_ip_ttl(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTtlResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_ip_ttl(self)
}
pub fn r#set_ip_packet_info(
&self,
mut value: bool,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpPacketInfoResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_ip_packet_info(self, value)
}
pub fn r#get_ip_packet_info(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpPacketInfoResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_ip_packet_info(self)
}
pub fn r#set_ip_receive_type_of_service(
&self,
mut value: bool,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTypeOfServiceResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_ip_receive_type_of_service(self, value)
}
pub fn r#get_ip_receive_type_of_service(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTypeOfServiceResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_ip_receive_type_of_service(self)
}
pub fn r#set_ip_receive_ttl(
&self,
mut value: bool,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTtlResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_ip_receive_ttl(self, value)
}
pub fn r#get_ip_receive_ttl(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTtlResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_ip_receive_ttl(self)
}
pub fn r#set_ip_multicast_interface(
&self,
mut iface: u64,
mut address: &fidl_fuchsia_net::Ipv4Address,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastInterfaceResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_ip_multicast_interface(self, iface, address)
}
pub fn r#get_ip_multicast_interface(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastInterfaceResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_ip_multicast_interface(self)
}
pub fn r#set_ip_multicast_ttl(
&self,
mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastTtlResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_ip_multicast_ttl(self, value)
}
pub fn r#get_ip_multicast_ttl(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastTtlResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_ip_multicast_ttl(self)
}
pub fn r#set_ip_multicast_loopback(
&self,
mut value: bool,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastLoopbackResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_ip_multicast_loopback(self, value)
}
pub fn r#get_ip_multicast_loopback(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastLoopbackResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_ip_multicast_loopback(self)
}
pub fn r#add_ip_membership(
&self,
mut membership: &fidl_fuchsia_posix_socket::IpMulticastMembership,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpMembershipResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#add_ip_membership(self, membership)
}
pub fn r#drop_ip_membership(
&self,
mut membership: &fidl_fuchsia_posix_socket::IpMulticastMembership,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpMembershipResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#drop_ip_membership(self, membership)
}
pub fn r#set_ip_transparent(
&self,
mut value: bool,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTransparentResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_ip_transparent(self, value)
}
pub fn r#get_ip_transparent(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTransparentResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_ip_transparent(self)
}
pub fn r#set_ip_receive_original_destination_address(
&self,
mut value: bool,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveOriginalDestinationAddressResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_ip_receive_original_destination_address(self, value)
}
pub fn r#get_ip_receive_original_destination_address(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveOriginalDestinationAddressResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_ip_receive_original_destination_address(self)
}
pub fn r#add_ipv6_membership(
&self,
mut membership: &fidl_fuchsia_posix_socket::Ipv6MulticastMembership,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpv6MembershipResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#add_ipv6_membership(self, membership)
}
pub fn r#drop_ipv6_membership(
&self,
mut membership: &fidl_fuchsia_posix_socket::Ipv6MulticastMembership,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpv6MembershipResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#drop_ipv6_membership(self, membership)
}
pub fn r#set_ipv6_multicast_interface(
&self,
mut value: u64,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastInterfaceResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_ipv6_multicast_interface(self, value)
}
pub fn r#get_ipv6_multicast_interface(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastInterfaceResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_ipv6_multicast_interface(self)
}
pub fn r#set_ipv6_unicast_hops(
&self,
mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6UnicastHopsResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_ipv6_unicast_hops(self, value)
}
pub fn r#get_ipv6_unicast_hops(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6UnicastHopsResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_ipv6_unicast_hops(self)
}
pub fn r#set_ipv6_receive_hop_limit(
&self,
mut value: bool,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveHopLimitResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_ipv6_receive_hop_limit(self, value)
}
pub fn r#get_ipv6_receive_hop_limit(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveHopLimitResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_ipv6_receive_hop_limit(self)
}
pub fn r#set_ipv6_multicast_hops(
&self,
mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastHopsResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_ipv6_multicast_hops(self, value)
}
pub fn r#get_ipv6_multicast_hops(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastHopsResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_ipv6_multicast_hops(self)
}
pub fn r#set_ipv6_multicast_loopback(
&self,
mut value: bool,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastLoopbackResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_ipv6_multicast_loopback(self, value)
}
pub fn r#get_ipv6_multicast_loopback(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastLoopbackResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_ipv6_multicast_loopback(self)
}
pub fn r#set_ipv6_only(
&self,
mut value: bool,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6OnlyResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_ipv6_only(self, value)
}
pub fn r#get_ipv6_only(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6OnlyResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_ipv6_only(self)
}
pub fn r#set_ipv6_receive_traffic_class(
&self,
mut value: bool,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveTrafficClassResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_ipv6_receive_traffic_class(self, value)
}
pub fn r#get_ipv6_receive_traffic_class(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveTrafficClassResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_ipv6_receive_traffic_class(self)
}
pub fn r#set_ipv6_traffic_class(
&self,
mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6TrafficClassResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_ipv6_traffic_class(self, value)
}
pub fn r#get_ipv6_traffic_class(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6TrafficClassResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_ipv6_traffic_class(self)
}
pub fn r#set_ipv6_receive_packet_info(
&self,
mut value: bool,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceivePacketInfoResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_ipv6_receive_packet_info(self, value)
}
pub fn r#get_ipv6_receive_packet_info(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceivePacketInfoResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_ipv6_receive_packet_info(self)
}
pub fn r#get_original_destination(
&self,
) -> fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetOriginalDestinationResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_original_destination(self)
}
pub fn r#describe(
&self,
) -> fidl::client::QueryResponseFut<
SocketDescribeResponse,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#describe(self)
}
pub fn r#recv_msg(
&self,
mut want_addr: bool,
mut data_len: u32,
mut want_control: bool,
mut flags: fidl_fuchsia_posix_socket::RecvMsgFlags,
) -> fidl::client::QueryResponseFut<
SocketRecvMsgResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#recv_msg(self, want_addr, data_len, want_control, flags)
}
pub fn r#send_msg(
&self,
mut addr: Option<&fidl_fuchsia_net::SocketAddress>,
mut data: &[u8],
mut control: &fidl_fuchsia_posix_socket::NetworkSocketSendControlData,
mut flags: fidl_fuchsia_posix_socket::SendMsgFlags,
) -> fidl::client::QueryResponseFut<
SocketSendMsgResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#send_msg(self, addr, data, control, flags)
}
pub fn r#get_info(
&self,
) -> fidl::client::QueryResponseFut<
SocketGetInfoResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_info(self)
}
pub fn r#set_ip_header_included(
&self,
mut value: bool,
) -> fidl::client::QueryResponseFut<
SocketSetIpHeaderIncludedResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_ip_header_included(self, value)
}
pub fn r#get_ip_header_included(
&self,
) -> fidl::client::QueryResponseFut<
SocketGetIpHeaderIncludedResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_ip_header_included(self)
}
pub fn r#set_icmpv6_filter(
&self,
mut filter: &Icmpv6Filter,
) -> fidl::client::QueryResponseFut<
SocketSetIcmpv6FilterResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_icmpv6_filter(self, filter)
}
pub fn r#get_icmpv6_filter(
&self,
) -> fidl::client::QueryResponseFut<
SocketGetIcmpv6FilterResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_icmpv6_filter(self)
}
pub fn r#set_ipv6_checksum(
&self,
mut config: &Ipv6ChecksumConfiguration,
) -> fidl::client::QueryResponseFut<
SocketSetIpv6ChecksumResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#set_ipv6_checksum(self, config)
}
pub fn r#get_ipv6_checksum(
&self,
) -> fidl::client::QueryResponseFut<
SocketGetIpv6ChecksumResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
> {
SocketProxyInterface::r#get_ipv6_checksum(self)
}
}
impl SocketProxyInterface for SocketProxy {
fn r#clone(
&self,
mut request: fidl::endpoints::ServerEnd<fidl_fuchsia_unknown::CloneableMarker>,
) -> Result<(), fidl::Error> {
self.client.send::<fidl_fuchsia_unknown::CloneableCloneRequest>(
(request,),
0x20d8a7aba2168a79,
fidl::encoding::DynamicFlags::empty(),
)
}
type CloseResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_unknown::CloseableCloseResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#close(&self) -> Self::CloseResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_unknown::CloseableCloseResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x5ac5d459ad7f657e,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_unknown::CloseableCloseResult,
>(
(),
0x5ac5d459ad7f657e,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type QueryResponseFut =
fidl::client::QueryResponseFut<Vec<u8>, fidl::encoding::DefaultFuchsiaResourceDialect>;
fn r#query(&self) -> Self::QueryResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<Vec<u8>, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl_fuchsia_unknown::QueryableQueryResponse,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x2658edee9decfc06,
>(_buf?)?;
Ok(_response.protocol)
}
self.client.send_query_and_decode::<fidl::encoding::EmptyPayload, Vec<u8>>(
(),
0x2658edee9decfc06,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetReuseAddressResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketSetReuseAddressResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_reuse_address(&self, mut value: bool) -> Self::SetReuseAddressResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetReuseAddressResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x1fd74ee8b9a4a876,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseSocketSetReuseAddressRequest,
fidl_fuchsia_posix_socket::BaseSocketSetReuseAddressResult,
>(
(value,),
0x1fd74ee8b9a4a876,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetReuseAddressResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetReuseAddressResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_reuse_address(&self) -> Self::GetReuseAddressResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetReuseAddressResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetReuseAddressResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x67b7206b8d1bc0a5,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseSocketGetReuseAddressResult,
>(
(),
0x67b7206b8d1bc0a5,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetErrorResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetErrorResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_error(&self) -> Self::GetErrorResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetErrorResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x5aad39b33e5f6ebb,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseSocketGetErrorResult,
>(
(),
0x5aad39b33e5f6ebb,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetBroadcastResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketSetBroadcastResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_broadcast(&self, mut value: bool) -> Self::SetBroadcastResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetBroadcastResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x6023e081ce3cd947,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseSocketSetBroadcastRequest,
fidl_fuchsia_posix_socket::BaseSocketSetBroadcastResult,
>(
(value,),
0x6023e081ce3cd947,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetBroadcastResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetBroadcastResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_broadcast(&self) -> Self::GetBroadcastResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetBroadcastResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetBroadcastResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x68796fc556f9780d,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseSocketGetBroadcastResult,
>(
(),
0x68796fc556f9780d,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetSendBufferResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketSetSendBufferResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_send_buffer(&self, mut value_bytes: u64) -> Self::SetSendBufferResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetSendBufferResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x756eac32d73a7a70,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseSocketSetSendBufferRequest,
fidl_fuchsia_posix_socket::BaseSocketSetSendBufferResult,
>(
(value_bytes,),
0x756eac32d73a7a70,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetSendBufferResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetSendBufferResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_send_buffer(&self) -> Self::GetSendBufferResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetSendBufferResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetSendBufferResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x78a52fd9c7b2410b,
>(_buf?)?;
Ok(_response.map(|x| x.value_bytes))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseSocketGetSendBufferResult,
>(
(),
0x78a52fd9c7b2410b,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetReceiveBufferResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketSetReceiveBufferResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_receive_buffer(&self, mut value_bytes: u64) -> Self::SetReceiveBufferResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetReceiveBufferResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x6b0cf2f1919c7001,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseSocketSetReceiveBufferRequest,
fidl_fuchsia_posix_socket::BaseSocketSetReceiveBufferResult,
>(
(value_bytes,),
0x6b0cf2f1919c7001,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetReceiveBufferResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetReceiveBufferResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_receive_buffer(&self) -> Self::GetReceiveBufferResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetReceiveBufferResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetReceiveBufferResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x14c1a4b64f709e5c,
>(_buf?)?;
Ok(_response.map(|x| x.value_bytes))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseSocketGetReceiveBufferResult,
>(
(),
0x14c1a4b64f709e5c,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetKeepAliveResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketSetKeepAliveResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_keep_alive(&self, mut value: bool) -> Self::SetKeepAliveResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetKeepAliveResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x572df8f0b920d2c7,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseSocketSetKeepAliveRequest,
fidl_fuchsia_posix_socket::BaseSocketSetKeepAliveResult,
>(
(value,),
0x572df8f0b920d2c7,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetKeepAliveResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetKeepAliveResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_keep_alive(&self) -> Self::GetKeepAliveResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetKeepAliveResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetKeepAliveResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x2dd29d3215f2c9d2,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseSocketGetKeepAliveResult,
>(
(),
0x2dd29d3215f2c9d2,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetOutOfBandInlineResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketSetOutOfBandInlineResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_out_of_band_inline(&self, mut value: bool) -> Self::SetOutOfBandInlineResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetOutOfBandInlineResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x3ecb49968bee439,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseSocketSetOutOfBandInlineRequest,
fidl_fuchsia_posix_socket::BaseSocketSetOutOfBandInlineResult,
>(
(value,),
0x3ecb49968bee439,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetOutOfBandInlineResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetOutOfBandInlineResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_out_of_band_inline(&self) -> Self::GetOutOfBandInlineResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetOutOfBandInlineResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetOutOfBandInlineResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x348c1ab3aeca1745,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseSocketGetOutOfBandInlineResult,
>(
(),
0x348c1ab3aeca1745,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetNoCheckResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketSetNoCheckResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_no_check(&self, mut value: bool) -> Self::SetNoCheckResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetNoCheckResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x6bbf00c53a4c78c2,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseSocketSetNoCheckRequest,
fidl_fuchsia_posix_socket::BaseSocketSetNoCheckResult,
>(
(value,),
0x6bbf00c53a4c78c2,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetNoCheckResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetNoCheckResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_no_check(&self) -> Self::GetNoCheckResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetNoCheckResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetNoCheckResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x2cd4249286417694,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseSocketGetNoCheckResult,
>(
(),
0x2cd4249286417694,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetLingerResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketSetLingerResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_linger(&self, mut linger: bool, mut length_secs: u32) -> Self::SetLingerResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetLingerResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x45386351246e998e,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseSocketSetLingerRequest,
fidl_fuchsia_posix_socket::BaseSocketSetLingerResult,
>(
(linger, length_secs,),
0x45386351246e998e,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetLingerResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetLingerResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_linger(&self) -> Self::GetLingerResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetLingerResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetLingerResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x48eb20fc5ccb0e45,
>(_buf?)?;
Ok(_response.map(|x| (x.linger, x.length_secs)))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseSocketGetLingerResult,
>(
(),
0x48eb20fc5ccb0e45,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetReusePortResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketSetReusePortResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_reuse_port(&self, mut value: bool) -> Self::SetReusePortResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetReusePortResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x24dd3e5cb36d9ccb,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseSocketSetReusePortRequest,
fidl_fuchsia_posix_socket::BaseSocketSetReusePortResult,
>(
(value,),
0x24dd3e5cb36d9ccb,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetReusePortResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetReusePortResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_reuse_port(&self) -> Self::GetReusePortResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetReusePortResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetReusePortResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x7a112c1ab54ff828,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseSocketGetReusePortResult,
>(
(),
0x7a112c1ab54ff828,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetAcceptConnResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetAcceptConnResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_accept_conn(&self) -> Self::GetAcceptConnResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetAcceptConnResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetAcceptConnResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x67ce6db6c2ec8966,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseSocketGetAcceptConnResult,
>(
(),
0x67ce6db6c2ec8966,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetBindToDeviceResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketSetBindToDeviceResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_bind_to_device(&self, mut value: &str) -> Self::SetBindToDeviceResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetBindToDeviceResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x2118b483f28aafc4,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseSocketSetBindToDeviceRequest,
fidl_fuchsia_posix_socket::BaseSocketSetBindToDeviceResult,
>(
(value,),
0x2118b483f28aafc4,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetBindToDeviceResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetBindToDeviceResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_bind_to_device(&self) -> Self::GetBindToDeviceResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetBindToDeviceResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetBindToDeviceResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x1ab1fbf0ef7906c8,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseSocketGetBindToDeviceResult,
>(
(),
0x1ab1fbf0ef7906c8,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetBindToInterfaceIndexResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketSetBindToInterfaceIndexResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_bind_to_interface_index(
&self,
mut value: u64,
) -> Self::SetBindToInterfaceIndexResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetBindToInterfaceIndexResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x6e387a0def00821,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseSocketSetBindToInterfaceIndexRequest,
fidl_fuchsia_posix_socket::BaseSocketSetBindToInterfaceIndexResult,
>(
(value,),
0x6e387a0def00821,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetBindToInterfaceIndexResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetBindToInterfaceIndexResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_bind_to_interface_index(&self) -> Self::GetBindToInterfaceIndexResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetBindToInterfaceIndexResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetBindToInterfaceIndexResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x59c31dd3e3078295,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseSocketGetBindToInterfaceIndexResult,
>(
(),
0x59c31dd3e3078295,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetTimestampResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketSetTimestampResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_timestamp(
&self,
mut value: fidl_fuchsia_posix_socket::TimestampOption,
) -> Self::SetTimestampResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetTimestampResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x285d6516c263d839,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseSocketSetTimestampRequest,
fidl_fuchsia_posix_socket::BaseSocketSetTimestampResult,
>(
(value,),
0x285d6516c263d839,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetTimestampResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetTimestampResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_timestamp(&self) -> Self::GetTimestampResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetTimestampResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetTimestampResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x49f2fffbbcc2bd27,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseSocketGetTimestampResult,
>(
(),
0x49f2fffbbcc2bd27,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetMarkResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketSetMarkResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_mark(
&self,
mut domain: fidl_fuchsia_posix_socket::MarkDomain,
mut mark: &fidl_fuchsia_posix_socket::OptionalUint32,
) -> Self::SetMarkResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetMarkResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x6ead6de09f653236,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseSocketSetMarkRequest,
fidl_fuchsia_posix_socket::BaseSocketSetMarkResult,
>(
(domain, mark,),
0x6ead6de09f653236,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetMarkResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseSocketGetMarkResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_mark(
&self,
mut domain: fidl_fuchsia_posix_socket::MarkDomain,
) -> Self::GetMarkResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetMarkResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetMarkResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x57a2752c61d93d47,
>(_buf?)?;
Ok(_response.map(|x| x.mark))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseSocketGetMarkRequest,
fidl_fuchsia_posix_socket::BaseSocketGetMarkResult,
>(
(domain,),
0x57a2752c61d93d47,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type BindResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketBindResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#bind(&self, mut addr: &fidl_fuchsia_net::SocketAddress) -> Self::BindResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketBindResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x4bc6400ae92125d,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseNetworkSocketBindRequest,
fidl_fuchsia_posix_socket::BaseNetworkSocketBindResult,
>(
(addr,),
0x4bc6400ae92125d,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type ConnectResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketConnectResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#connect(&self, mut addr: &fidl_fuchsia_net::SocketAddress) -> Self::ConnectResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketConnectResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x5f05f19bfdd38871,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseNetworkSocketConnectRequest,
fidl_fuchsia_posix_socket::BaseNetworkSocketConnectResult,
>(
(addr,),
0x5f05f19bfdd38871,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type DisconnectResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketDisconnectResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#disconnect(&self) -> Self::DisconnectResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketDisconnectResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x74e63b91f7b29b2,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseNetworkSocketDisconnectResult,
>(
(),
0x74e63b91f7b29b2,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetSockNameResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetSockNameResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_sock_name(&self) -> Self::GetSockNameResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetSockNameResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetSockNameResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x475f23f84a1a4f85,
>(_buf?)?;
Ok(_response.map(|x| x.addr))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseNetworkSocketGetSockNameResult,
>(
(),
0x475f23f84a1a4f85,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetPeerNameResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetPeerNameResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_peer_name(&self) -> Self::GetPeerNameResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetPeerNameResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetPeerNameResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x1ffecf4bd5b6432e,
>(_buf?)?;
Ok(_response.map(|x| x.addr))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseNetworkSocketGetPeerNameResult,
>(
(),
0x1ffecf4bd5b6432e,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type ShutdownResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketShutdownResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#shutdown(
&self,
mut mode: fidl_fuchsia_posix_socket::ShutdownMode,
) -> Self::ShutdownResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketShutdownResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x247f38b6db68c336,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseNetworkSocketShutdownRequest,
fidl_fuchsia_posix_socket::BaseNetworkSocketShutdownResult,
>(
(mode,),
0x247f38b6db68c336,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetIpTypeOfServiceResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTypeOfServiceResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_ip_type_of_service(&self, mut value: u8) -> Self::SetIpTypeOfServiceResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTypeOfServiceResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x995c600475b6d46,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTypeOfServiceRequest,
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTypeOfServiceResult,
>(
(value,),
0x995c600475b6d46,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetIpTypeOfServiceResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTypeOfServiceResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_ip_type_of_service(&self) -> Self::GetIpTypeOfServiceResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTypeOfServiceResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTypeOfServiceResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x3814a04259f75fcb,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTypeOfServiceResult,
>(
(),
0x3814a04259f75fcb,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetIpTtlResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTtlResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_ip_ttl(
&self,
mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
) -> Self::SetIpTtlResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTtlResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x29e2424b433ae1ef,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTtlRequest,
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTtlResult,
>(
(value,),
0x29e2424b433ae1ef,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetIpTtlResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTtlResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_ip_ttl(&self) -> Self::GetIpTtlResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTtlResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTtlResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x47e47fa1f24da471,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTtlResult,
>(
(),
0x47e47fa1f24da471,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetIpPacketInfoResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpPacketInfoResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_ip_packet_info(&self, mut value: bool) -> Self::SetIpPacketInfoResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpPacketInfoResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x392d16bee20c0e16,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpPacketInfoRequest,
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpPacketInfoResult,
>(
(value,),
0x392d16bee20c0e16,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetIpPacketInfoResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpPacketInfoResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_ip_packet_info(&self) -> Self::GetIpPacketInfoResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpPacketInfoResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpPacketInfoResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x54b505f242280740,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpPacketInfoResult,
>(
(),
0x54b505f242280740,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetIpReceiveTypeOfServiceResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTypeOfServiceResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_ip_receive_type_of_service(
&self,
mut value: bool,
) -> Self::SetIpReceiveTypeOfServiceResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTypeOfServiceResult,
fidl::Error,
> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x6c4f6714995f84ef,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTypeOfServiceRequest,
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTypeOfServiceResult,
>(
(value,),
0x6c4f6714995f84ef,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetIpReceiveTypeOfServiceResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTypeOfServiceResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_ip_receive_type_of_service(&self) -> Self::GetIpReceiveTypeOfServiceResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTypeOfServiceResult,
fidl::Error,
> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTypeOfServiceResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x4158ba7dc2795960,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTypeOfServiceResult,
>(
(),
0x4158ba7dc2795960,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetIpReceiveTtlResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTtlResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_ip_receive_ttl(&self, mut value: bool) -> Self::SetIpReceiveTtlResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTtlResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x46f15be0ce0ab82b,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTtlRequest,
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTtlResult,
>(
(value,),
0x46f15be0ce0ab82b,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetIpReceiveTtlResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTtlResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_ip_receive_ttl(&self) -> Self::GetIpReceiveTtlResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTtlResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTtlResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x678ddd5a5dfa2eb5,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTtlResult,
>(
(),
0x678ddd5a5dfa2eb5,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetIpMulticastInterfaceResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastInterfaceResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_ip_multicast_interface(
&self,
mut iface: u64,
mut address: &fidl_fuchsia_net::Ipv4Address,
) -> Self::SetIpMulticastInterfaceResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastInterfaceResult,
fidl::Error,
> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x752fbfa9b12befe,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastInterfaceRequest,
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastInterfaceResult,
>(
(iface, address,),
0x752fbfa9b12befe,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetIpMulticastInterfaceResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastInterfaceResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_ip_multicast_interface(&self) -> Self::GetIpMulticastInterfaceResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastInterfaceResult,
fidl::Error,
> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastInterfaceResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x320bd14c4df046c4,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastInterfaceResult,
>(
(),
0x320bd14c4df046c4,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetIpMulticastTtlResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastTtlResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_ip_multicast_ttl(
&self,
mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
) -> Self::SetIpMulticastTtlResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastTtlResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x63134d53772916a1,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastTtlRequest,
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastTtlResult,
>(
(value,),
0x63134d53772916a1,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetIpMulticastTtlResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastTtlResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_ip_multicast_ttl(&self) -> Self::GetIpMulticastTtlResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastTtlResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastTtlResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x4665cd378f39e1a,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastTtlResult,
>(
(),
0x4665cd378f39e1a,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetIpMulticastLoopbackResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastLoopbackResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_ip_multicast_loopback(
&self,
mut value: bool,
) -> Self::SetIpMulticastLoopbackResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastLoopbackResult,
fidl::Error,
> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x20c55c11f00943ea,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastLoopbackRequest,
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastLoopbackResult,
>(
(value,),
0x20c55c11f00943ea,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetIpMulticastLoopbackResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastLoopbackResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_ip_multicast_loopback(&self) -> Self::GetIpMulticastLoopbackResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastLoopbackResult,
fidl::Error,
> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastLoopbackResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x3b6b26ff558298f2,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastLoopbackResult,
>(
(),
0x3b6b26ff558298f2,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type AddIpMembershipResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpMembershipResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#add_ip_membership(
&self,
mut membership: &fidl_fuchsia_posix_socket::IpMulticastMembership,
) -> Self::AddIpMembershipResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpMembershipResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x76bc7df115a3b4d0,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpMembershipRequest,
fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpMembershipResult,
>(
(membership,),
0x76bc7df115a3b4d0,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type DropIpMembershipResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpMembershipResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#drop_ip_membership(
&self,
mut membership: &fidl_fuchsia_posix_socket::IpMulticastMembership,
) -> Self::DropIpMembershipResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpMembershipResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x2888f3099188d03,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpMembershipRequest,
fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpMembershipResult,
>(
(membership,),
0x2888f3099188d03,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetIpTransparentResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTransparentResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_ip_transparent(&self, mut value: bool) -> Self::SetIpTransparentResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTransparentResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x1ae532b0c066e3a0,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTransparentRequest,
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTransparentResult,
>(
(value,),
0x1ae532b0c066e3a0,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetIpTransparentResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTransparentResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_ip_transparent(&self) -> Self::GetIpTransparentResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTransparentResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTransparentResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x51d43695962ebfb5,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTransparentResult,
>(
(),
0x51d43695962ebfb5,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetIpReceiveOriginalDestinationAddressResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveOriginalDestinationAddressResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_ip_receive_original_destination_address(
&self,
mut value: bool,
) -> Self::SetIpReceiveOriginalDestinationAddressResponseFut {
fn _decode(mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveOriginalDestinationAddressResult, fidl::Error>{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x4722b4ce52f7840,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveOriginalDestinationAddressRequest,
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveOriginalDestinationAddressResult,
>(
(value,),
0x4722b4ce52f7840,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetIpReceiveOriginalDestinationAddressResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveOriginalDestinationAddressResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_ip_receive_original_destination_address(
&self,
) -> Self::GetIpReceiveOriginalDestinationAddressResponseFut {
fn _decode(mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveOriginalDestinationAddressResult, fidl::Error>{
let _response = fidl::client::decode_transaction_body::<fidl::encoding::ResultType<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveOriginalDestinationAddressResponse, fidl_fuchsia_posix::Errno>, fidl::encoding::DefaultFuchsiaResourceDialect, 0x2a0e7dc5d6bfdfe9>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveOriginalDestinationAddressResult,
>(
(),
0x2a0e7dc5d6bfdfe9,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type AddIpv6MembershipResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpv6MembershipResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#add_ipv6_membership(
&self,
mut membership: &fidl_fuchsia_posix_socket::Ipv6MulticastMembership,
) -> Self::AddIpv6MembershipResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpv6MembershipResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x7c94727acb4ea4b3,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpv6MembershipRequest,
fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpv6MembershipResult,
>(
(membership,),
0x7c94727acb4ea4b3,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type DropIpv6MembershipResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpv6MembershipResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#drop_ipv6_membership(
&self,
mut membership: &fidl_fuchsia_posix_socket::Ipv6MulticastMembership,
) -> Self::DropIpv6MembershipResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpv6MembershipResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x42104c70ccaba304,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpv6MembershipRequest,
fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpv6MembershipResult,
>(
(membership,),
0x42104c70ccaba304,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetIpv6MulticastInterfaceResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastInterfaceResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_ipv6_multicast_interface(
&self,
mut value: u64,
) -> Self::SetIpv6MulticastInterfaceResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastInterfaceResult,
fidl::Error,
> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x135f76db3774ab3b,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastInterfaceRequest,
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastInterfaceResult,
>(
(value,),
0x135f76db3774ab3b,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetIpv6MulticastInterfaceResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastInterfaceResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_ipv6_multicast_interface(&self) -> Self::GetIpv6MulticastInterfaceResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastInterfaceResult,
fidl::Error,
> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastInterfaceResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x1f26fcdd348f1882,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastInterfaceResult,
>(
(),
0x1f26fcdd348f1882,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetIpv6UnicastHopsResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6UnicastHopsResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_ipv6_unicast_hops(
&self,
mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
) -> Self::SetIpv6UnicastHopsResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6UnicastHopsResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x157d51e98f462859,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6UnicastHopsRequest,
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6UnicastHopsResult,
>(
(value,),
0x157d51e98f462859,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetIpv6UnicastHopsResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6UnicastHopsResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_ipv6_unicast_hops(&self) -> Self::GetIpv6UnicastHopsResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6UnicastHopsResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6UnicastHopsResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x21f4641cad8bd8d2,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6UnicastHopsResult,
>(
(),
0x21f4641cad8bd8d2,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetIpv6ReceiveHopLimitResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveHopLimitResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_ipv6_receive_hop_limit(
&self,
mut value: bool,
) -> Self::SetIpv6ReceiveHopLimitResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveHopLimitResult,
fidl::Error,
> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x5c24808ed2e84a1e,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveHopLimitRequest,
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveHopLimitResult,
>(
(value,),
0x5c24808ed2e84a1e,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetIpv6ReceiveHopLimitResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveHopLimitResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_ipv6_receive_hop_limit(&self) -> Self::GetIpv6ReceiveHopLimitResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveHopLimitResult,
fidl::Error,
> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveHopLimitResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x341e06689885b4c0,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveHopLimitResult,
>(
(),
0x341e06689885b4c0,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetIpv6MulticastHopsResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastHopsResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_ipv6_multicast_hops(
&self,
mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
) -> Self::SetIpv6MulticastHopsResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastHopsResult,
fidl::Error,
> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x25b9cd4d181f82c1,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastHopsRequest,
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastHopsResult,
>(
(value,),
0x25b9cd4d181f82c1,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetIpv6MulticastHopsResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastHopsResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_ipv6_multicast_hops(&self) -> Self::GetIpv6MulticastHopsResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastHopsResult,
fidl::Error,
> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastHopsResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x52916948a365012a,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastHopsResult,
>(
(),
0x52916948a365012a,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetIpv6MulticastLoopbackResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastLoopbackResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_ipv6_multicast_loopback(
&self,
mut value: bool,
) -> Self::SetIpv6MulticastLoopbackResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastLoopbackResult,
fidl::Error,
> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x55701c409ff41b40,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastLoopbackRequest,
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastLoopbackResult,
>(
(value,),
0x55701c409ff41b40,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetIpv6MulticastLoopbackResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastLoopbackResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_ipv6_multicast_loopback(&self) -> Self::GetIpv6MulticastLoopbackResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastLoopbackResult,
fidl::Error,
> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastLoopbackResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x4415b701fde319c3,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastLoopbackResult,
>(
(),
0x4415b701fde319c3,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetIpv6OnlyResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6OnlyResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_ipv6_only(&self, mut value: bool) -> Self::SetIpv6OnlyResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6OnlyResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x4873f1364758cbba,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6OnlyRequest,
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6OnlyResult,
>(
(value,),
0x4873f1364758cbba,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetIpv6OnlyResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6OnlyResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_ipv6_only(&self) -> Self::GetIpv6OnlyResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6OnlyResult, fidl::Error>
{
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6OnlyResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x4aa3340a1a26b89c,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6OnlyResult,
>(
(),
0x4aa3340a1a26b89c,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetIpv6ReceiveTrafficClassResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveTrafficClassResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_ipv6_receive_traffic_class(
&self,
mut value: bool,
) -> Self::SetIpv6ReceiveTrafficClassResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveTrafficClassResult,
fidl::Error,
> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x58f07c8788d099a0,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveTrafficClassRequest,
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveTrafficClassResult,
>(
(value,),
0x58f07c8788d099a0,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetIpv6ReceiveTrafficClassResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveTrafficClassResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_ipv6_receive_traffic_class(&self) -> Self::GetIpv6ReceiveTrafficClassResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveTrafficClassResult,
fidl::Error,
> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveTrafficClassResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x2e334df1da553ffa,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveTrafficClassResult,
>(
(),
0x2e334df1da553ffa,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetIpv6TrafficClassResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6TrafficClassResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_ipv6_traffic_class(
&self,
mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
) -> Self::SetIpv6TrafficClassResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6TrafficClassResult,
fidl::Error,
> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x6af077800c5a0b4f,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6TrafficClassRequest,
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6TrafficClassResult,
>(
(value,),
0x6af077800c5a0b4f,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetIpv6TrafficClassResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6TrafficClassResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_ipv6_traffic_class(&self) -> Self::GetIpv6TrafficClassResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6TrafficClassResult,
fidl::Error,
> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6TrafficClassResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x6baf6eed8fc2f04,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6TrafficClassResult,
>(
(),
0x6baf6eed8fc2f04,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetIpv6ReceivePacketInfoResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceivePacketInfoResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_ipv6_receive_packet_info(
&self,
mut value: bool,
) -> Self::SetIpv6ReceivePacketInfoResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceivePacketInfoResult,
fidl::Error,
> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x19259775b1a92768,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceivePacketInfoRequest,
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceivePacketInfoResult,
>(
(value,),
0x19259775b1a92768,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetIpv6ReceivePacketInfoResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceivePacketInfoResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_ipv6_receive_packet_info(&self) -> Self::GetIpv6ReceivePacketInfoResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceivePacketInfoResult,
fidl::Error,
> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceivePacketInfoResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x7acd4a2775baec75,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceivePacketInfoResult,
>(
(),
0x7acd4a2775baec75,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetOriginalDestinationResponseFut = fidl::client::QueryResponseFut<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetOriginalDestinationResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_original_destination(&self) -> Self::GetOriginalDestinationResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetOriginalDestinationResult,
fidl::Error,
> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetOriginalDestinationResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x38bf28f0dafdbac0,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client.send_query_and_decode::<
fidl::encoding::EmptyPayload,
fidl_fuchsia_posix_socket::BaseNetworkSocketGetOriginalDestinationResult,
>(
(),
0x38bf28f0dafdbac0,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type DescribeResponseFut = fidl::client::QueryResponseFut<
SocketDescribeResponse,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#describe(&self) -> Self::DescribeResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<SocketDescribeResponse, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
SocketDescribeResponse,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x335706eccf54a135,
>(_buf?)?;
Ok(_response)
}
self.client.send_query_and_decode::<fidl::encoding::EmptyPayload, SocketDescribeResponse>(
(),
0x335706eccf54a135,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type RecvMsgResponseFut = fidl::client::QueryResponseFut<
SocketRecvMsgResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#recv_msg(
&self,
mut want_addr: bool,
mut data_len: u32,
mut want_control: bool,
mut flags: fidl_fuchsia_posix_socket::RecvMsgFlags,
) -> Self::RecvMsgResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<SocketRecvMsgResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<SocketRecvMsgResponse, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x1dfb695351d3aa1d,
>(_buf?)?;
Ok(_response.map(|x| (x.addr, x.data, x.control, x.truncated)))
}
self.client.send_query_and_decode::<SocketRecvMsgRequest, SocketRecvMsgResult>(
(want_addr, data_len, want_control, flags),
0x1dfb695351d3aa1d,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SendMsgResponseFut = fidl::client::QueryResponseFut<
SocketSendMsgResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#send_msg(
&self,
mut addr: Option<&fidl_fuchsia_net::SocketAddress>,
mut data: &[u8],
mut control: &fidl_fuchsia_posix_socket::NetworkSocketSendControlData,
mut flags: fidl_fuchsia_posix_socket::SendMsgFlags,
) -> Self::SendMsgResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<SocketSendMsgResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x2cf1eac9a7fc8958,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<SocketSendMsgRequest, SocketSendMsgResult>(
(addr, data, control, flags),
0x2cf1eac9a7fc8958,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetInfoResponseFut = fidl::client::QueryResponseFut<
SocketGetInfoResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_info(&self) -> Self::GetInfoResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<SocketGetInfoResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<SocketGetInfoResponse, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x39676f75aec339ba,
>(_buf?)?;
Ok(_response.map(|x| (x.domain, x.proto)))
}
self.client.send_query_and_decode::<fidl::encoding::EmptyPayload, SocketGetInfoResult>(
(),
0x39676f75aec339ba,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetIpHeaderIncludedResponseFut = fidl::client::QueryResponseFut<
SocketSetIpHeaderIncludedResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_ip_header_included(&self, mut value: bool) -> Self::SetIpHeaderIncludedResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<SocketSetIpHeaderIncludedResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x5d06a606d95e8f3,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client.send_query_and_decode::<
SocketSetIpHeaderIncludedRequest,
SocketSetIpHeaderIncludedResult,
>(
(value,),
0x5d06a606d95e8f3,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetIpHeaderIncludedResponseFut = fidl::client::QueryResponseFut<
SocketGetIpHeaderIncludedResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_ip_header_included(&self) -> Self::GetIpHeaderIncludedResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<SocketGetIpHeaderIncludedResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
SocketGetIpHeaderIncludedResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x76125ad1f4d175f6,
>(_buf?)?;
Ok(_response.map(|x| x.value))
}
self.client
.send_query_and_decode::<fidl::encoding::EmptyPayload, SocketGetIpHeaderIncludedResult>(
(),
0x76125ad1f4d175f6,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetIcmpv6FilterResponseFut = fidl::client::QueryResponseFut<
SocketSetIcmpv6FilterResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_icmpv6_filter(&self, mut filter: &Icmpv6Filter) -> Self::SetIcmpv6FilterResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<SocketSetIcmpv6FilterResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x4ebea92a43ae68a9,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client
.send_query_and_decode::<SocketSetIcmpv6FilterRequest, SocketSetIcmpv6FilterResult>(
(filter,),
0x4ebea92a43ae68a9,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetIcmpv6FilterResponseFut = fidl::client::QueryResponseFut<
SocketGetIcmpv6FilterResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_icmpv6_filter(&self) -> Self::GetIcmpv6FilterResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<SocketGetIcmpv6FilterResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
SocketGetIcmpv6FilterResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x43bd4f3bc0970ace,
>(_buf?)?;
Ok(_response.map(|x| x.filter))
}
self.client
.send_query_and_decode::<fidl::encoding::EmptyPayload, SocketGetIcmpv6FilterResult>(
(),
0x43bd4f3bc0970ace,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type SetIpv6ChecksumResponseFut = fidl::client::QueryResponseFut<
SocketSetIpv6ChecksumResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#set_ipv6_checksum(
&self,
mut config: &Ipv6ChecksumConfiguration,
) -> Self::SetIpv6ChecksumResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<SocketSetIpv6ChecksumResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x18b7809577199cb4,
>(_buf?)?;
Ok(_response.map(|x| x))
}
self.client
.send_query_and_decode::<SocketSetIpv6ChecksumRequest, SocketSetIpv6ChecksumResult>(
(config,),
0x18b7809577199cb4,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
type GetIpv6ChecksumResponseFut = fidl::client::QueryResponseFut<
SocketGetIpv6ChecksumResult,
fidl::encoding::DefaultFuchsiaResourceDialect,
>;
fn r#get_ipv6_checksum(&self) -> Self::GetIpv6ChecksumResponseFut {
fn _decode(
mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
) -> Result<SocketGetIpv6ChecksumResult, fidl::Error> {
let _response = fidl::client::decode_transaction_body::<
fidl::encoding::ResultType<
SocketGetIpv6ChecksumResponse,
fidl_fuchsia_posix::Errno,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
0x1847bf5b2d263dd,
>(_buf?)?;
Ok(_response.map(|x| x.config))
}
self.client
.send_query_and_decode::<fidl::encoding::EmptyPayload, SocketGetIpv6ChecksumResult>(
(),
0x1847bf5b2d263dd,
fidl::encoding::DynamicFlags::empty(),
_decode,
)
}
}
pub struct SocketEventStream {
event_receiver: fidl::client::EventReceiver<fidl::encoding::DefaultFuchsiaResourceDialect>,
}
impl std::marker::Unpin for SocketEventStream {}
impl futures::stream::FusedStream for SocketEventStream {
fn is_terminated(&self) -> bool {
self.event_receiver.is_terminated()
}
}
impl futures::Stream for SocketEventStream {
type Item = Result<SocketEvent, fidl::Error>;
fn poll_next(
mut self: std::pin::Pin<&mut Self>,
cx: &mut std::task::Context<'_>,
) -> std::task::Poll<Option<Self::Item>> {
match futures::ready!(futures::stream::StreamExt::poll_next_unpin(
&mut self.event_receiver,
cx
)?) {
Some(buf) => std::task::Poll::Ready(Some(SocketEvent::decode(buf))),
None => std::task::Poll::Ready(None),
}
}
}
#[derive(Debug)]
pub enum SocketEvent {}
impl SocketEvent {
fn decode(
mut buf: <fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc,
) -> Result<SocketEvent, fidl::Error> {
let (bytes, _handles) = buf.split_mut();
let (tx_header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
debug_assert_eq!(tx_header.tx_id, 0);
match tx_header.ordinal {
_ => Err(fidl::Error::UnknownOrdinal {
ordinal: tx_header.ordinal,
protocol_name: <SocketMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
}),
}
}
}
pub struct SocketRequestStream {
inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
is_terminated: bool,
}
impl std::marker::Unpin for SocketRequestStream {}
impl futures::stream::FusedStream for SocketRequestStream {
fn is_terminated(&self) -> bool {
self.is_terminated
}
}
impl fidl::endpoints::RequestStream for SocketRequestStream {
type Protocol = SocketMarker;
type ControlHandle = SocketControlHandle;
fn from_channel(channel: ::fidl::AsyncChannel) -> Self {
Self { inner: std::sync::Arc::new(fidl::ServeInner::new(channel)), is_terminated: false }
}
fn control_handle(&self) -> Self::ControlHandle {
SocketControlHandle { inner: self.inner.clone() }
}
fn into_inner(
self,
) -> (::std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>, bool)
{
(self.inner, self.is_terminated)
}
fn from_inner(
inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
is_terminated: bool,
) -> Self {
Self { inner, is_terminated }
}
}
impl futures::Stream for SocketRequestStream {
type Item = Result<SocketRequest, fidl::Error>;
fn poll_next(
mut self: std::pin::Pin<&mut Self>,
cx: &mut std::task::Context<'_>,
) -> std::task::Poll<Option<Self::Item>> {
let this = &mut *self;
if this.inner.check_shutdown(cx) {
this.is_terminated = true;
return std::task::Poll::Ready(None);
}
if this.is_terminated {
panic!("polled SocketRequestStream after completion");
}
fidl::encoding::with_tls_decode_buf::<_, fidl::encoding::DefaultFuchsiaResourceDialect>(
|bytes, handles| {
match this.inner.channel().read_etc(cx, bytes, handles) {
std::task::Poll::Ready(Ok(())) => {}
std::task::Poll::Pending => return std::task::Poll::Pending,
std::task::Poll::Ready(Err(zx_status::Status::PEER_CLOSED)) => {
this.is_terminated = true;
return std::task::Poll::Ready(None);
}
std::task::Poll::Ready(Err(e)) => {
return std::task::Poll::Ready(Some(Err(fidl::Error::ServerRequestRead(
e.into(),
))))
}
}
let (header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
std::task::Poll::Ready(Some(match header.ordinal {
0x20d8a7aba2168a79 => {
header.validate_request_tx_id(fidl::MethodType::OneWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_unknown::CloneableCloneRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_unknown::CloneableCloneRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::Clone { request: req.request, control_handle })
}
0x5ac5d459ad7f657e => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::Close {
responder: SocketCloseResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x2658edee9decfc06 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::Query {
responder: SocketQueryResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x1fd74ee8b9a4a876 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseSocketSetReuseAddressRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseSocketSetReuseAddressRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetReuseAddress {
value: req.value,
responder: SocketSetReuseAddressResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x67b7206b8d1bc0a5 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetReuseAddress {
responder: SocketGetReuseAddressResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x5aad39b33e5f6ebb => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetError {
responder: SocketGetErrorResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x6023e081ce3cd947 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseSocketSetBroadcastRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseSocketSetBroadcastRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetBroadcast {
value: req.value,
responder: SocketSetBroadcastResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x68796fc556f9780d => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetBroadcast {
responder: SocketGetBroadcastResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x756eac32d73a7a70 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseSocketSetSendBufferRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseSocketSetSendBufferRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetSendBuffer {
value_bytes: req.value_bytes,
responder: SocketSetSendBufferResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x78a52fd9c7b2410b => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetSendBuffer {
responder: SocketGetSendBufferResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x6b0cf2f1919c7001 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseSocketSetReceiveBufferRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseSocketSetReceiveBufferRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetReceiveBuffer {
value_bytes: req.value_bytes,
responder: SocketSetReceiveBufferResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x14c1a4b64f709e5c => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetReceiveBuffer {
responder: SocketGetReceiveBufferResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x572df8f0b920d2c7 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseSocketSetKeepAliveRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseSocketSetKeepAliveRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetKeepAlive {
value: req.value,
responder: SocketSetKeepAliveResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x2dd29d3215f2c9d2 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetKeepAlive {
responder: SocketGetKeepAliveResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x3ecb49968bee439 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseSocketSetOutOfBandInlineRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseSocketSetOutOfBandInlineRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetOutOfBandInline {
value: req.value,
responder: SocketSetOutOfBandInlineResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x348c1ab3aeca1745 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetOutOfBandInline {
responder: SocketGetOutOfBandInlineResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x6bbf00c53a4c78c2 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseSocketSetNoCheckRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseSocketSetNoCheckRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetNoCheck {
value: req.value,
responder: SocketSetNoCheckResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x2cd4249286417694 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetNoCheck {
responder: SocketGetNoCheckResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x45386351246e998e => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseSocketSetLingerRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseSocketSetLingerRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetLinger {
linger: req.linger,
length_secs: req.length_secs,
responder: SocketSetLingerResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x48eb20fc5ccb0e45 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetLinger {
responder: SocketGetLingerResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x24dd3e5cb36d9ccb => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseSocketSetReusePortRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseSocketSetReusePortRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetReusePort {
value: req.value,
responder: SocketSetReusePortResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x7a112c1ab54ff828 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetReusePort {
responder: SocketGetReusePortResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x67ce6db6c2ec8966 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetAcceptConn {
responder: SocketGetAcceptConnResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x2118b483f28aafc4 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseSocketSetBindToDeviceRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseSocketSetBindToDeviceRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetBindToDevice {
value: req.value,
responder: SocketSetBindToDeviceResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x1ab1fbf0ef7906c8 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetBindToDevice {
responder: SocketGetBindToDeviceResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x6e387a0def00821 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseSocketSetBindToInterfaceIndexRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseSocketSetBindToInterfaceIndexRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetBindToInterfaceIndex {
value: req.value,
responder: SocketSetBindToInterfaceIndexResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x59c31dd3e3078295 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetBindToInterfaceIndex {
responder: SocketGetBindToInterfaceIndexResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x285d6516c263d839 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseSocketSetTimestampRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseSocketSetTimestampRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetTimestamp {
value: req.value,
responder: SocketSetTimestampResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x49f2fffbbcc2bd27 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetTimestamp {
responder: SocketGetTimestampResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x6ead6de09f653236 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseSocketSetMarkRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseSocketSetMarkRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetMark {
domain: req.domain,
mark: req.mark,
responder: SocketSetMarkResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x57a2752c61d93d47 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseSocketGetMarkRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseSocketGetMarkRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetMark {
domain: req.domain,
responder: SocketGetMarkResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x4bc6400ae92125d => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseNetworkSocketBindRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketBindRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::Bind {
addr: req.addr,
responder: SocketBindResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x5f05f19bfdd38871 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseNetworkSocketConnectRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketConnectRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::Connect {
addr: req.addr,
responder: SocketConnectResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x74e63b91f7b29b2 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::Disconnect {
responder: SocketDisconnectResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x475f23f84a1a4f85 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetSockName {
responder: SocketGetSockNameResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x1ffecf4bd5b6432e => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetPeerName {
responder: SocketGetPeerNameResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x247f38b6db68c336 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseNetworkSocketShutdownRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketShutdownRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::Shutdown {
mode: req.mode,
responder: SocketShutdownResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x995c600475b6d46 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTypeOfServiceRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTypeOfServiceRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetIpTypeOfService {
value: req.value,
responder: SocketSetIpTypeOfServiceResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x3814a04259f75fcb => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetIpTypeOfService {
responder: SocketGetIpTypeOfServiceResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x29e2424b433ae1ef => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTtlRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTtlRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetIpTtl {
value: req.value,
responder: SocketSetIpTtlResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x47e47fa1f24da471 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetIpTtl {
responder: SocketGetIpTtlResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x392d16bee20c0e16 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpPacketInfoRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpPacketInfoRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetIpPacketInfo {
value: req.value,
responder: SocketSetIpPacketInfoResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x54b505f242280740 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetIpPacketInfo {
responder: SocketGetIpPacketInfoResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x6c4f6714995f84ef => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTypeOfServiceRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTypeOfServiceRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetIpReceiveTypeOfService {
value: req.value,
responder: SocketSetIpReceiveTypeOfServiceResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x4158ba7dc2795960 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetIpReceiveTypeOfService {
responder: SocketGetIpReceiveTypeOfServiceResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x46f15be0ce0ab82b => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTtlRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTtlRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetIpReceiveTtl {
value: req.value,
responder: SocketSetIpReceiveTtlResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x678ddd5a5dfa2eb5 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetIpReceiveTtl {
responder: SocketGetIpReceiveTtlResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x752fbfa9b12befe => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastInterfaceRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastInterfaceRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetIpMulticastInterface {
iface: req.iface,
address: req.address,
responder: SocketSetIpMulticastInterfaceResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x320bd14c4df046c4 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetIpMulticastInterface {
responder: SocketGetIpMulticastInterfaceResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x63134d53772916a1 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastTtlRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastTtlRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetIpMulticastTtl {
value: req.value,
responder: SocketSetIpMulticastTtlResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x4665cd378f39e1a => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetIpMulticastTtl {
responder: SocketGetIpMulticastTtlResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x20c55c11f00943ea => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastLoopbackRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastLoopbackRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetIpMulticastLoopback {
value: req.value,
responder: SocketSetIpMulticastLoopbackResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x3b6b26ff558298f2 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetIpMulticastLoopback {
responder: SocketGetIpMulticastLoopbackResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x76bc7df115a3b4d0 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpMembershipRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpMembershipRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::AddIpMembership {
membership: req.membership,
responder: SocketAddIpMembershipResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x2888f3099188d03 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpMembershipRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpMembershipRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::DropIpMembership {
membership: req.membership,
responder: SocketDropIpMembershipResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x1ae532b0c066e3a0 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTransparentRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTransparentRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetIpTransparent {
value: req.value,
responder: SocketSetIpTransparentResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x51d43695962ebfb5 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetIpTransparent {
responder: SocketGetIpTransparentResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x4722b4ce52f7840 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveOriginalDestinationAddressRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveOriginalDestinationAddressRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetIpReceiveOriginalDestinationAddress {
value: req.value,
responder: SocketSetIpReceiveOriginalDestinationAddressResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x2a0e7dc5d6bfdfe9 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetIpReceiveOriginalDestinationAddress {
responder: SocketGetIpReceiveOriginalDestinationAddressResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x7c94727acb4ea4b3 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpv6MembershipRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpv6MembershipRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::AddIpv6Membership {
membership: req.membership,
responder: SocketAddIpv6MembershipResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x42104c70ccaba304 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpv6MembershipRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpv6MembershipRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::DropIpv6Membership {
membership: req.membership,
responder: SocketDropIpv6MembershipResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x135f76db3774ab3b => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastInterfaceRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastInterfaceRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetIpv6MulticastInterface {
value: req.value,
responder: SocketSetIpv6MulticastInterfaceResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x1f26fcdd348f1882 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetIpv6MulticastInterface {
responder: SocketGetIpv6MulticastInterfaceResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x157d51e98f462859 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6UnicastHopsRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6UnicastHopsRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetIpv6UnicastHops {
value: req.value,
responder: SocketSetIpv6UnicastHopsResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x21f4641cad8bd8d2 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetIpv6UnicastHops {
responder: SocketGetIpv6UnicastHopsResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x5c24808ed2e84a1e => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveHopLimitRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveHopLimitRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetIpv6ReceiveHopLimit {
value: req.value,
responder: SocketSetIpv6ReceiveHopLimitResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x341e06689885b4c0 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetIpv6ReceiveHopLimit {
responder: SocketGetIpv6ReceiveHopLimitResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x25b9cd4d181f82c1 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastHopsRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastHopsRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetIpv6MulticastHops {
value: req.value,
responder: SocketSetIpv6MulticastHopsResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x52916948a365012a => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetIpv6MulticastHops {
responder: SocketGetIpv6MulticastHopsResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x55701c409ff41b40 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastLoopbackRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastLoopbackRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetIpv6MulticastLoopback {
value: req.value,
responder: SocketSetIpv6MulticastLoopbackResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x4415b701fde319c3 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetIpv6MulticastLoopback {
responder: SocketGetIpv6MulticastLoopbackResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x4873f1364758cbba => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6OnlyRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6OnlyRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetIpv6Only {
value: req.value,
responder: SocketSetIpv6OnlyResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x4aa3340a1a26b89c => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetIpv6Only {
responder: SocketGetIpv6OnlyResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x58f07c8788d099a0 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveTrafficClassRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveTrafficClassRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetIpv6ReceiveTrafficClass {
value: req.value,
responder: SocketSetIpv6ReceiveTrafficClassResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x2e334df1da553ffa => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetIpv6ReceiveTrafficClass {
responder: SocketGetIpv6ReceiveTrafficClassResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x6af077800c5a0b4f => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6TrafficClassRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6TrafficClassRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetIpv6TrafficClass {
value: req.value,
responder: SocketSetIpv6TrafficClassResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x6baf6eed8fc2f04 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetIpv6TrafficClass {
responder: SocketGetIpv6TrafficClassResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x19259775b1a92768 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceivePacketInfoRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceivePacketInfoRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetIpv6ReceivePacketInfo {
value: req.value,
responder: SocketSetIpv6ReceivePacketInfoResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x7acd4a2775baec75 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetIpv6ReceivePacketInfo {
responder: SocketGetIpv6ReceivePacketInfoResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x38bf28f0dafdbac0 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetOriginalDestination {
responder: SocketGetOriginalDestinationResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x335706eccf54a135 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::Describe {
responder: SocketDescribeResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x1dfb695351d3aa1d => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
SocketRecvMsgRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<SocketRecvMsgRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::RecvMsg {
want_addr: req.want_addr,
data_len: req.data_len,
want_control: req.want_control,
flags: req.flags,
responder: SocketRecvMsgResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x2cf1eac9a7fc8958 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
SocketSendMsgRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<SocketSendMsgRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SendMsg {
addr: req.addr,
data: req.data,
control: req.control,
flags: req.flags,
responder: SocketSendMsgResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x39676f75aec339ba => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetInfo {
responder: SocketGetInfoResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x5d06a606d95e8f3 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
SocketSetIpHeaderIncludedRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<SocketSetIpHeaderIncludedRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetIpHeaderIncluded {
value: req.value,
responder: SocketSetIpHeaderIncludedResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x76125ad1f4d175f6 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetIpHeaderIncluded {
responder: SocketGetIpHeaderIncludedResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x4ebea92a43ae68a9 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
SocketSetIcmpv6FilterRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<SocketSetIcmpv6FilterRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetIcmpv6Filter {
filter: req.filter,
responder: SocketSetIcmpv6FilterResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x43bd4f3bc0970ace => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetIcmpv6Filter {
responder: SocketGetIcmpv6FilterResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x18b7809577199cb4 => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
SocketSetIpv6ChecksumRequest,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<SocketSetIpv6ChecksumRequest>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::SetIpv6Checksum {
config: req.config,
responder: SocketSetIpv6ChecksumResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
0x1847bf5b2d263dd => {
header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
let mut req = fidl::new_empty!(
fidl::encoding::EmptyPayload,
fidl::encoding::DefaultFuchsiaResourceDialect
);
fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
let control_handle = SocketControlHandle { inner: this.inner.clone() };
Ok(SocketRequest::GetIpv6Checksum {
responder: SocketGetIpv6ChecksumResponder {
control_handle: std::mem::ManuallyDrop::new(control_handle),
tx_id: header.tx_id,
},
})
}
_ => Err(fidl::Error::UnknownOrdinal {
ordinal: header.ordinal,
protocol_name:
<SocketMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
}),
}))
},
)
}
}
#[derive(Debug)]
pub enum SocketRequest {
Clone {
request: fidl::endpoints::ServerEnd<fidl_fuchsia_unknown::CloneableMarker>,
control_handle: SocketControlHandle,
},
Close {
responder: SocketCloseResponder,
},
Query {
responder: SocketQueryResponder,
},
SetReuseAddress {
value: bool,
responder: SocketSetReuseAddressResponder,
},
GetReuseAddress {
responder: SocketGetReuseAddressResponder,
},
GetError {
responder: SocketGetErrorResponder,
},
SetBroadcast {
value: bool,
responder: SocketSetBroadcastResponder,
},
GetBroadcast {
responder: SocketGetBroadcastResponder,
},
SetSendBuffer {
value_bytes: u64,
responder: SocketSetSendBufferResponder,
},
GetSendBuffer {
responder: SocketGetSendBufferResponder,
},
SetReceiveBuffer {
value_bytes: u64,
responder: SocketSetReceiveBufferResponder,
},
GetReceiveBuffer {
responder: SocketGetReceiveBufferResponder,
},
SetKeepAlive {
value: bool,
responder: SocketSetKeepAliveResponder,
},
GetKeepAlive {
responder: SocketGetKeepAliveResponder,
},
SetOutOfBandInline {
value: bool,
responder: SocketSetOutOfBandInlineResponder,
},
GetOutOfBandInline {
responder: SocketGetOutOfBandInlineResponder,
},
SetNoCheck {
value: bool,
responder: SocketSetNoCheckResponder,
},
GetNoCheck {
responder: SocketGetNoCheckResponder,
},
SetLinger {
linger: bool,
length_secs: u32,
responder: SocketSetLingerResponder,
},
GetLinger {
responder: SocketGetLingerResponder,
},
SetReusePort {
value: bool,
responder: SocketSetReusePortResponder,
},
GetReusePort {
responder: SocketGetReusePortResponder,
},
GetAcceptConn {
responder: SocketGetAcceptConnResponder,
},
SetBindToDevice {
value: String,
responder: SocketSetBindToDeviceResponder,
},
GetBindToDevice {
responder: SocketGetBindToDeviceResponder,
},
SetBindToInterfaceIndex {
value: u64,
responder: SocketSetBindToInterfaceIndexResponder,
},
GetBindToInterfaceIndex {
responder: SocketGetBindToInterfaceIndexResponder,
},
SetTimestamp {
value: fidl_fuchsia_posix_socket::TimestampOption,
responder: SocketSetTimestampResponder,
},
GetTimestamp {
responder: SocketGetTimestampResponder,
},
SetMark {
domain: fidl_fuchsia_posix_socket::MarkDomain,
mark: fidl_fuchsia_posix_socket::OptionalUint32,
responder: SocketSetMarkResponder,
},
GetMark {
domain: fidl_fuchsia_posix_socket::MarkDomain,
responder: SocketGetMarkResponder,
},
Bind {
addr: fidl_fuchsia_net::SocketAddress,
responder: SocketBindResponder,
},
Connect {
addr: fidl_fuchsia_net::SocketAddress,
responder: SocketConnectResponder,
},
Disconnect {
responder: SocketDisconnectResponder,
},
GetSockName {
responder: SocketGetSockNameResponder,
},
GetPeerName {
responder: SocketGetPeerNameResponder,
},
Shutdown {
mode: fidl_fuchsia_posix_socket::ShutdownMode,
responder: SocketShutdownResponder,
},
SetIpTypeOfService {
value: u8,
responder: SocketSetIpTypeOfServiceResponder,
},
GetIpTypeOfService {
responder: SocketGetIpTypeOfServiceResponder,
},
SetIpTtl {
value: fidl_fuchsia_posix_socket::OptionalUint8,
responder: SocketSetIpTtlResponder,
},
GetIpTtl {
responder: SocketGetIpTtlResponder,
},
SetIpPacketInfo {
value: bool,
responder: SocketSetIpPacketInfoResponder,
},
GetIpPacketInfo {
responder: SocketGetIpPacketInfoResponder,
},
SetIpReceiveTypeOfService {
value: bool,
responder: SocketSetIpReceiveTypeOfServiceResponder,
},
GetIpReceiveTypeOfService {
responder: SocketGetIpReceiveTypeOfServiceResponder,
},
SetIpReceiveTtl {
value: bool,
responder: SocketSetIpReceiveTtlResponder,
},
GetIpReceiveTtl {
responder: SocketGetIpReceiveTtlResponder,
},
SetIpMulticastInterface {
iface: u64,
address: fidl_fuchsia_net::Ipv4Address,
responder: SocketSetIpMulticastInterfaceResponder,
},
GetIpMulticastInterface {
responder: SocketGetIpMulticastInterfaceResponder,
},
SetIpMulticastTtl {
value: fidl_fuchsia_posix_socket::OptionalUint8,
responder: SocketSetIpMulticastTtlResponder,
},
GetIpMulticastTtl {
responder: SocketGetIpMulticastTtlResponder,
},
SetIpMulticastLoopback {
value: bool,
responder: SocketSetIpMulticastLoopbackResponder,
},
GetIpMulticastLoopback {
responder: SocketGetIpMulticastLoopbackResponder,
},
AddIpMembership {
membership: fidl_fuchsia_posix_socket::IpMulticastMembership,
responder: SocketAddIpMembershipResponder,
},
DropIpMembership {
membership: fidl_fuchsia_posix_socket::IpMulticastMembership,
responder: SocketDropIpMembershipResponder,
},
SetIpTransparent {
value: bool,
responder: SocketSetIpTransparentResponder,
},
GetIpTransparent {
responder: SocketGetIpTransparentResponder,
},
SetIpReceiveOriginalDestinationAddress {
value: bool,
responder: SocketSetIpReceiveOriginalDestinationAddressResponder,
},
GetIpReceiveOriginalDestinationAddress {
responder: SocketGetIpReceiveOriginalDestinationAddressResponder,
},
AddIpv6Membership {
membership: fidl_fuchsia_posix_socket::Ipv6MulticastMembership,
responder: SocketAddIpv6MembershipResponder,
},
DropIpv6Membership {
membership: fidl_fuchsia_posix_socket::Ipv6MulticastMembership,
responder: SocketDropIpv6MembershipResponder,
},
SetIpv6MulticastInterface {
value: u64,
responder: SocketSetIpv6MulticastInterfaceResponder,
},
GetIpv6MulticastInterface {
responder: SocketGetIpv6MulticastInterfaceResponder,
},
SetIpv6UnicastHops {
value: fidl_fuchsia_posix_socket::OptionalUint8,
responder: SocketSetIpv6UnicastHopsResponder,
},
GetIpv6UnicastHops {
responder: SocketGetIpv6UnicastHopsResponder,
},
SetIpv6ReceiveHopLimit {
value: bool,
responder: SocketSetIpv6ReceiveHopLimitResponder,
},
GetIpv6ReceiveHopLimit {
responder: SocketGetIpv6ReceiveHopLimitResponder,
},
SetIpv6MulticastHops {
value: fidl_fuchsia_posix_socket::OptionalUint8,
responder: SocketSetIpv6MulticastHopsResponder,
},
GetIpv6MulticastHops {
responder: SocketGetIpv6MulticastHopsResponder,
},
SetIpv6MulticastLoopback {
value: bool,
responder: SocketSetIpv6MulticastLoopbackResponder,
},
GetIpv6MulticastLoopback {
responder: SocketGetIpv6MulticastLoopbackResponder,
},
SetIpv6Only {
value: bool,
responder: SocketSetIpv6OnlyResponder,
},
GetIpv6Only {
responder: SocketGetIpv6OnlyResponder,
},
SetIpv6ReceiveTrafficClass {
value: bool,
responder: SocketSetIpv6ReceiveTrafficClassResponder,
},
GetIpv6ReceiveTrafficClass {
responder: SocketGetIpv6ReceiveTrafficClassResponder,
},
SetIpv6TrafficClass {
value: fidl_fuchsia_posix_socket::OptionalUint8,
responder: SocketSetIpv6TrafficClassResponder,
},
GetIpv6TrafficClass {
responder: SocketGetIpv6TrafficClassResponder,
},
SetIpv6ReceivePacketInfo {
value: bool,
responder: SocketSetIpv6ReceivePacketInfoResponder,
},
GetIpv6ReceivePacketInfo {
responder: SocketGetIpv6ReceivePacketInfoResponder,
},
GetOriginalDestination {
responder: SocketGetOriginalDestinationResponder,
},
Describe {
responder: SocketDescribeResponder,
},
RecvMsg {
want_addr: bool,
data_len: u32,
want_control: bool,
flags: fidl_fuchsia_posix_socket::RecvMsgFlags,
responder: SocketRecvMsgResponder,
},
SendMsg {
addr: Option<Box<fidl_fuchsia_net::SocketAddress>>,
data: Vec<u8>,
control: fidl_fuchsia_posix_socket::NetworkSocketSendControlData,
flags: fidl_fuchsia_posix_socket::SendMsgFlags,
responder: SocketSendMsgResponder,
},
GetInfo {
responder: SocketGetInfoResponder,
},
SetIpHeaderIncluded {
value: bool,
responder: SocketSetIpHeaderIncludedResponder,
},
GetIpHeaderIncluded {
responder: SocketGetIpHeaderIncludedResponder,
},
SetIcmpv6Filter {
filter: Icmpv6Filter,
responder: SocketSetIcmpv6FilterResponder,
},
GetIcmpv6Filter {
responder: SocketGetIcmpv6FilterResponder,
},
SetIpv6Checksum {
config: Ipv6ChecksumConfiguration,
responder: SocketSetIpv6ChecksumResponder,
},
GetIpv6Checksum {
responder: SocketGetIpv6ChecksumResponder,
},
}
impl SocketRequest {
#[allow(irrefutable_let_patterns)]
pub fn into_clone(
self,
) -> Option<(
fidl::endpoints::ServerEnd<fidl_fuchsia_unknown::CloneableMarker>,
SocketControlHandle,
)> {
if let SocketRequest::Clone { request, control_handle } = self {
Some((request, control_handle))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_close(self) -> Option<(SocketCloseResponder)> {
if let SocketRequest::Close { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_query(self) -> Option<(SocketQueryResponder)> {
if let SocketRequest::Query { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_reuse_address(self) -> Option<(bool, SocketSetReuseAddressResponder)> {
if let SocketRequest::SetReuseAddress { value, responder } = self {
Some((value, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_reuse_address(self) -> Option<(SocketGetReuseAddressResponder)> {
if let SocketRequest::GetReuseAddress { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_error(self) -> Option<(SocketGetErrorResponder)> {
if let SocketRequest::GetError { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_broadcast(self) -> Option<(bool, SocketSetBroadcastResponder)> {
if let SocketRequest::SetBroadcast { value, responder } = self {
Some((value, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_broadcast(self) -> Option<(SocketGetBroadcastResponder)> {
if let SocketRequest::GetBroadcast { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_send_buffer(self) -> Option<(u64, SocketSetSendBufferResponder)> {
if let SocketRequest::SetSendBuffer { value_bytes, responder } = self {
Some((value_bytes, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_send_buffer(self) -> Option<(SocketGetSendBufferResponder)> {
if let SocketRequest::GetSendBuffer { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_receive_buffer(self) -> Option<(u64, SocketSetReceiveBufferResponder)> {
if let SocketRequest::SetReceiveBuffer { value_bytes, responder } = self {
Some((value_bytes, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_receive_buffer(self) -> Option<(SocketGetReceiveBufferResponder)> {
if let SocketRequest::GetReceiveBuffer { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_keep_alive(self) -> Option<(bool, SocketSetKeepAliveResponder)> {
if let SocketRequest::SetKeepAlive { value, responder } = self {
Some((value, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_keep_alive(self) -> Option<(SocketGetKeepAliveResponder)> {
if let SocketRequest::GetKeepAlive { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_out_of_band_inline(self) -> Option<(bool, SocketSetOutOfBandInlineResponder)> {
if let SocketRequest::SetOutOfBandInline { value, responder } = self {
Some((value, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_out_of_band_inline(self) -> Option<(SocketGetOutOfBandInlineResponder)> {
if let SocketRequest::GetOutOfBandInline { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_no_check(self) -> Option<(bool, SocketSetNoCheckResponder)> {
if let SocketRequest::SetNoCheck { value, responder } = self {
Some((value, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_no_check(self) -> Option<(SocketGetNoCheckResponder)> {
if let SocketRequest::GetNoCheck { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_linger(self) -> Option<(bool, u32, SocketSetLingerResponder)> {
if let SocketRequest::SetLinger { linger, length_secs, responder } = self {
Some((linger, length_secs, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_linger(self) -> Option<(SocketGetLingerResponder)> {
if let SocketRequest::GetLinger { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_reuse_port(self) -> Option<(bool, SocketSetReusePortResponder)> {
if let SocketRequest::SetReusePort { value, responder } = self {
Some((value, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_reuse_port(self) -> Option<(SocketGetReusePortResponder)> {
if let SocketRequest::GetReusePort { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_accept_conn(self) -> Option<(SocketGetAcceptConnResponder)> {
if let SocketRequest::GetAcceptConn { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_bind_to_device(self) -> Option<(String, SocketSetBindToDeviceResponder)> {
if let SocketRequest::SetBindToDevice { value, responder } = self {
Some((value, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_bind_to_device(self) -> Option<(SocketGetBindToDeviceResponder)> {
if let SocketRequest::GetBindToDevice { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_bind_to_interface_index(
self,
) -> Option<(u64, SocketSetBindToInterfaceIndexResponder)> {
if let SocketRequest::SetBindToInterfaceIndex { value, responder } = self {
Some((value, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_bind_to_interface_index(
self,
) -> Option<(SocketGetBindToInterfaceIndexResponder)> {
if let SocketRequest::GetBindToInterfaceIndex { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_timestamp(
self,
) -> Option<(fidl_fuchsia_posix_socket::TimestampOption, SocketSetTimestampResponder)> {
if let SocketRequest::SetTimestamp { value, responder } = self {
Some((value, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_timestamp(self) -> Option<(SocketGetTimestampResponder)> {
if let SocketRequest::GetTimestamp { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_mark(
self,
) -> Option<(
fidl_fuchsia_posix_socket::MarkDomain,
fidl_fuchsia_posix_socket::OptionalUint32,
SocketSetMarkResponder,
)> {
if let SocketRequest::SetMark { domain, mark, responder } = self {
Some((domain, mark, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_mark(
self,
) -> Option<(fidl_fuchsia_posix_socket::MarkDomain, SocketGetMarkResponder)> {
if let SocketRequest::GetMark { domain, responder } = self {
Some((domain, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_bind(self) -> Option<(fidl_fuchsia_net::SocketAddress, SocketBindResponder)> {
if let SocketRequest::Bind { addr, responder } = self {
Some((addr, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_connect(self) -> Option<(fidl_fuchsia_net::SocketAddress, SocketConnectResponder)> {
if let SocketRequest::Connect { addr, responder } = self {
Some((addr, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_disconnect(self) -> Option<(SocketDisconnectResponder)> {
if let SocketRequest::Disconnect { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_sock_name(self) -> Option<(SocketGetSockNameResponder)> {
if let SocketRequest::GetSockName { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_peer_name(self) -> Option<(SocketGetPeerNameResponder)> {
if let SocketRequest::GetPeerName { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_shutdown(
self,
) -> Option<(fidl_fuchsia_posix_socket::ShutdownMode, SocketShutdownResponder)> {
if let SocketRequest::Shutdown { mode, responder } = self {
Some((mode, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_ip_type_of_service(self) -> Option<(u8, SocketSetIpTypeOfServiceResponder)> {
if let SocketRequest::SetIpTypeOfService { value, responder } = self {
Some((value, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_ip_type_of_service(self) -> Option<(SocketGetIpTypeOfServiceResponder)> {
if let SocketRequest::GetIpTypeOfService { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_ip_ttl(
self,
) -> Option<(fidl_fuchsia_posix_socket::OptionalUint8, SocketSetIpTtlResponder)> {
if let SocketRequest::SetIpTtl { value, responder } = self {
Some((value, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_ip_ttl(self) -> Option<(SocketGetIpTtlResponder)> {
if let SocketRequest::GetIpTtl { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_ip_packet_info(self) -> Option<(bool, SocketSetIpPacketInfoResponder)> {
if let SocketRequest::SetIpPacketInfo { value, responder } = self {
Some((value, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_ip_packet_info(self) -> Option<(SocketGetIpPacketInfoResponder)> {
if let SocketRequest::GetIpPacketInfo { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_ip_receive_type_of_service(
self,
) -> Option<(bool, SocketSetIpReceiveTypeOfServiceResponder)> {
if let SocketRequest::SetIpReceiveTypeOfService { value, responder } = self {
Some((value, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_ip_receive_type_of_service(
self,
) -> Option<(SocketGetIpReceiveTypeOfServiceResponder)> {
if let SocketRequest::GetIpReceiveTypeOfService { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_ip_receive_ttl(self) -> Option<(bool, SocketSetIpReceiveTtlResponder)> {
if let SocketRequest::SetIpReceiveTtl { value, responder } = self {
Some((value, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_ip_receive_ttl(self) -> Option<(SocketGetIpReceiveTtlResponder)> {
if let SocketRequest::GetIpReceiveTtl { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_ip_multicast_interface(
self,
) -> Option<(u64, fidl_fuchsia_net::Ipv4Address, SocketSetIpMulticastInterfaceResponder)> {
if let SocketRequest::SetIpMulticastInterface { iface, address, responder } = self {
Some((iface, address, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_ip_multicast_interface(
self,
) -> Option<(SocketGetIpMulticastInterfaceResponder)> {
if let SocketRequest::GetIpMulticastInterface { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_ip_multicast_ttl(
self,
) -> Option<(fidl_fuchsia_posix_socket::OptionalUint8, SocketSetIpMulticastTtlResponder)> {
if let SocketRequest::SetIpMulticastTtl { value, responder } = self {
Some((value, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_ip_multicast_ttl(self) -> Option<(SocketGetIpMulticastTtlResponder)> {
if let SocketRequest::GetIpMulticastTtl { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_ip_multicast_loopback(
self,
) -> Option<(bool, SocketSetIpMulticastLoopbackResponder)> {
if let SocketRequest::SetIpMulticastLoopback { value, responder } = self {
Some((value, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_ip_multicast_loopback(self) -> Option<(SocketGetIpMulticastLoopbackResponder)> {
if let SocketRequest::GetIpMulticastLoopback { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_add_ip_membership(
self,
) -> Option<(fidl_fuchsia_posix_socket::IpMulticastMembership, SocketAddIpMembershipResponder)>
{
if let SocketRequest::AddIpMembership { membership, responder } = self {
Some((membership, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_drop_ip_membership(
self,
) -> Option<(fidl_fuchsia_posix_socket::IpMulticastMembership, SocketDropIpMembershipResponder)>
{
if let SocketRequest::DropIpMembership { membership, responder } = self {
Some((membership, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_ip_transparent(self) -> Option<(bool, SocketSetIpTransparentResponder)> {
if let SocketRequest::SetIpTransparent { value, responder } = self {
Some((value, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_ip_transparent(self) -> Option<(SocketGetIpTransparentResponder)> {
if let SocketRequest::GetIpTransparent { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_ip_receive_original_destination_address(
self,
) -> Option<(bool, SocketSetIpReceiveOriginalDestinationAddressResponder)> {
if let SocketRequest::SetIpReceiveOriginalDestinationAddress { value, responder } = self {
Some((value, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_ip_receive_original_destination_address(
self,
) -> Option<(SocketGetIpReceiveOriginalDestinationAddressResponder)> {
if let SocketRequest::GetIpReceiveOriginalDestinationAddress { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_add_ipv6_membership(
self,
) -> Option<(
fidl_fuchsia_posix_socket::Ipv6MulticastMembership,
SocketAddIpv6MembershipResponder,
)> {
if let SocketRequest::AddIpv6Membership { membership, responder } = self {
Some((membership, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_drop_ipv6_membership(
self,
) -> Option<(
fidl_fuchsia_posix_socket::Ipv6MulticastMembership,
SocketDropIpv6MembershipResponder,
)> {
if let SocketRequest::DropIpv6Membership { membership, responder } = self {
Some((membership, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_ipv6_multicast_interface(
self,
) -> Option<(u64, SocketSetIpv6MulticastInterfaceResponder)> {
if let SocketRequest::SetIpv6MulticastInterface { value, responder } = self {
Some((value, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_ipv6_multicast_interface(
self,
) -> Option<(SocketGetIpv6MulticastInterfaceResponder)> {
if let SocketRequest::GetIpv6MulticastInterface { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_ipv6_unicast_hops(
self,
) -> Option<(fidl_fuchsia_posix_socket::OptionalUint8, SocketSetIpv6UnicastHopsResponder)> {
if let SocketRequest::SetIpv6UnicastHops { value, responder } = self {
Some((value, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_ipv6_unicast_hops(self) -> Option<(SocketGetIpv6UnicastHopsResponder)> {
if let SocketRequest::GetIpv6UnicastHops { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_ipv6_receive_hop_limit(
self,
) -> Option<(bool, SocketSetIpv6ReceiveHopLimitResponder)> {
if let SocketRequest::SetIpv6ReceiveHopLimit { value, responder } = self {
Some((value, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_ipv6_receive_hop_limit(
self,
) -> Option<(SocketGetIpv6ReceiveHopLimitResponder)> {
if let SocketRequest::GetIpv6ReceiveHopLimit { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_ipv6_multicast_hops(
self,
) -> Option<(fidl_fuchsia_posix_socket::OptionalUint8, SocketSetIpv6MulticastHopsResponder)>
{
if let SocketRequest::SetIpv6MulticastHops { value, responder } = self {
Some((value, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_ipv6_multicast_hops(self) -> Option<(SocketGetIpv6MulticastHopsResponder)> {
if let SocketRequest::GetIpv6MulticastHops { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_ipv6_multicast_loopback(
self,
) -> Option<(bool, SocketSetIpv6MulticastLoopbackResponder)> {
if let SocketRequest::SetIpv6MulticastLoopback { value, responder } = self {
Some((value, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_ipv6_multicast_loopback(
self,
) -> Option<(SocketGetIpv6MulticastLoopbackResponder)> {
if let SocketRequest::GetIpv6MulticastLoopback { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_ipv6_only(self) -> Option<(bool, SocketSetIpv6OnlyResponder)> {
if let SocketRequest::SetIpv6Only { value, responder } = self {
Some((value, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_ipv6_only(self) -> Option<(SocketGetIpv6OnlyResponder)> {
if let SocketRequest::GetIpv6Only { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_ipv6_receive_traffic_class(
self,
) -> Option<(bool, SocketSetIpv6ReceiveTrafficClassResponder)> {
if let SocketRequest::SetIpv6ReceiveTrafficClass { value, responder } = self {
Some((value, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_ipv6_receive_traffic_class(
self,
) -> Option<(SocketGetIpv6ReceiveTrafficClassResponder)> {
if let SocketRequest::GetIpv6ReceiveTrafficClass { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_ipv6_traffic_class(
self,
) -> Option<(fidl_fuchsia_posix_socket::OptionalUint8, SocketSetIpv6TrafficClassResponder)>
{
if let SocketRequest::SetIpv6TrafficClass { value, responder } = self {
Some((value, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_ipv6_traffic_class(self) -> Option<(SocketGetIpv6TrafficClassResponder)> {
if let SocketRequest::GetIpv6TrafficClass { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_ipv6_receive_packet_info(
self,
) -> Option<(bool, SocketSetIpv6ReceivePacketInfoResponder)> {
if let SocketRequest::SetIpv6ReceivePacketInfo { value, responder } = self {
Some((value, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_ipv6_receive_packet_info(
self,
) -> Option<(SocketGetIpv6ReceivePacketInfoResponder)> {
if let SocketRequest::GetIpv6ReceivePacketInfo { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_original_destination(self) -> Option<(SocketGetOriginalDestinationResponder)> {
if let SocketRequest::GetOriginalDestination { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_describe(self) -> Option<(SocketDescribeResponder)> {
if let SocketRequest::Describe { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_recv_msg(
self,
) -> Option<(bool, u32, bool, fidl_fuchsia_posix_socket::RecvMsgFlags, SocketRecvMsgResponder)>
{
if let SocketRequest::RecvMsg { want_addr, data_len, want_control, flags, responder } = self
{
Some((want_addr, data_len, want_control, flags, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_send_msg(
self,
) -> Option<(
Option<Box<fidl_fuchsia_net::SocketAddress>>,
Vec<u8>,
fidl_fuchsia_posix_socket::NetworkSocketSendControlData,
fidl_fuchsia_posix_socket::SendMsgFlags,
SocketSendMsgResponder,
)> {
if let SocketRequest::SendMsg { addr, data, control, flags, responder } = self {
Some((addr, data, control, flags, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_info(self) -> Option<(SocketGetInfoResponder)> {
if let SocketRequest::GetInfo { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_ip_header_included(self) -> Option<(bool, SocketSetIpHeaderIncludedResponder)> {
if let SocketRequest::SetIpHeaderIncluded { value, responder } = self {
Some((value, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_ip_header_included(self) -> Option<(SocketGetIpHeaderIncludedResponder)> {
if let SocketRequest::GetIpHeaderIncluded { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_icmpv6_filter(self) -> Option<(Icmpv6Filter, SocketSetIcmpv6FilterResponder)> {
if let SocketRequest::SetIcmpv6Filter { filter, responder } = self {
Some((filter, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_icmpv6_filter(self) -> Option<(SocketGetIcmpv6FilterResponder)> {
if let SocketRequest::GetIcmpv6Filter { responder } = self {
Some((responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_set_ipv6_checksum(
self,
) -> Option<(Ipv6ChecksumConfiguration, SocketSetIpv6ChecksumResponder)> {
if let SocketRequest::SetIpv6Checksum { config, responder } = self {
Some((config, responder))
} else {
None
}
}
#[allow(irrefutable_let_patterns)]
pub fn into_get_ipv6_checksum(self) -> Option<(SocketGetIpv6ChecksumResponder)> {
if let SocketRequest::GetIpv6Checksum { responder } = self {
Some((responder))
} else {
None
}
}
pub fn method_name(&self) -> &'static str {
match *self {
SocketRequest::Clone { .. } => "clone",
SocketRequest::Close { .. } => "close",
SocketRequest::Query { .. } => "query",
SocketRequest::SetReuseAddress { .. } => "set_reuse_address",
SocketRequest::GetReuseAddress { .. } => "get_reuse_address",
SocketRequest::GetError { .. } => "get_error",
SocketRequest::SetBroadcast { .. } => "set_broadcast",
SocketRequest::GetBroadcast { .. } => "get_broadcast",
SocketRequest::SetSendBuffer { .. } => "set_send_buffer",
SocketRequest::GetSendBuffer { .. } => "get_send_buffer",
SocketRequest::SetReceiveBuffer { .. } => "set_receive_buffer",
SocketRequest::GetReceiveBuffer { .. } => "get_receive_buffer",
SocketRequest::SetKeepAlive { .. } => "set_keep_alive",
SocketRequest::GetKeepAlive { .. } => "get_keep_alive",
SocketRequest::SetOutOfBandInline { .. } => "set_out_of_band_inline",
SocketRequest::GetOutOfBandInline { .. } => "get_out_of_band_inline",
SocketRequest::SetNoCheck { .. } => "set_no_check",
SocketRequest::GetNoCheck { .. } => "get_no_check",
SocketRequest::SetLinger { .. } => "set_linger",
SocketRequest::GetLinger { .. } => "get_linger",
SocketRequest::SetReusePort { .. } => "set_reuse_port",
SocketRequest::GetReusePort { .. } => "get_reuse_port",
SocketRequest::GetAcceptConn { .. } => "get_accept_conn",
SocketRequest::SetBindToDevice { .. } => "set_bind_to_device",
SocketRequest::GetBindToDevice { .. } => "get_bind_to_device",
SocketRequest::SetBindToInterfaceIndex { .. } => "set_bind_to_interface_index",
SocketRequest::GetBindToInterfaceIndex { .. } => "get_bind_to_interface_index",
SocketRequest::SetTimestamp { .. } => "set_timestamp",
SocketRequest::GetTimestamp { .. } => "get_timestamp",
SocketRequest::SetMark { .. } => "set_mark",
SocketRequest::GetMark { .. } => "get_mark",
SocketRequest::Bind { .. } => "bind",
SocketRequest::Connect { .. } => "connect",
SocketRequest::Disconnect { .. } => "disconnect",
SocketRequest::GetSockName { .. } => "get_sock_name",
SocketRequest::GetPeerName { .. } => "get_peer_name",
SocketRequest::Shutdown { .. } => "shutdown",
SocketRequest::SetIpTypeOfService { .. } => "set_ip_type_of_service",
SocketRequest::GetIpTypeOfService { .. } => "get_ip_type_of_service",
SocketRequest::SetIpTtl { .. } => "set_ip_ttl",
SocketRequest::GetIpTtl { .. } => "get_ip_ttl",
SocketRequest::SetIpPacketInfo { .. } => "set_ip_packet_info",
SocketRequest::GetIpPacketInfo { .. } => "get_ip_packet_info",
SocketRequest::SetIpReceiveTypeOfService { .. } => "set_ip_receive_type_of_service",
SocketRequest::GetIpReceiveTypeOfService { .. } => "get_ip_receive_type_of_service",
SocketRequest::SetIpReceiveTtl { .. } => "set_ip_receive_ttl",
SocketRequest::GetIpReceiveTtl { .. } => "get_ip_receive_ttl",
SocketRequest::SetIpMulticastInterface { .. } => "set_ip_multicast_interface",
SocketRequest::GetIpMulticastInterface { .. } => "get_ip_multicast_interface",
SocketRequest::SetIpMulticastTtl { .. } => "set_ip_multicast_ttl",
SocketRequest::GetIpMulticastTtl { .. } => "get_ip_multicast_ttl",
SocketRequest::SetIpMulticastLoopback { .. } => "set_ip_multicast_loopback",
SocketRequest::GetIpMulticastLoopback { .. } => "get_ip_multicast_loopback",
SocketRequest::AddIpMembership { .. } => "add_ip_membership",
SocketRequest::DropIpMembership { .. } => "drop_ip_membership",
SocketRequest::SetIpTransparent { .. } => "set_ip_transparent",
SocketRequest::GetIpTransparent { .. } => "get_ip_transparent",
SocketRequest::SetIpReceiveOriginalDestinationAddress { .. } => {
"set_ip_receive_original_destination_address"
}
SocketRequest::GetIpReceiveOriginalDestinationAddress { .. } => {
"get_ip_receive_original_destination_address"
}
SocketRequest::AddIpv6Membership { .. } => "add_ipv6_membership",
SocketRequest::DropIpv6Membership { .. } => "drop_ipv6_membership",
SocketRequest::SetIpv6MulticastInterface { .. } => "set_ipv6_multicast_interface",
SocketRequest::GetIpv6MulticastInterface { .. } => "get_ipv6_multicast_interface",
SocketRequest::SetIpv6UnicastHops { .. } => "set_ipv6_unicast_hops",
SocketRequest::GetIpv6UnicastHops { .. } => "get_ipv6_unicast_hops",
SocketRequest::SetIpv6ReceiveHopLimit { .. } => "set_ipv6_receive_hop_limit",
SocketRequest::GetIpv6ReceiveHopLimit { .. } => "get_ipv6_receive_hop_limit",
SocketRequest::SetIpv6MulticastHops { .. } => "set_ipv6_multicast_hops",
SocketRequest::GetIpv6MulticastHops { .. } => "get_ipv6_multicast_hops",
SocketRequest::SetIpv6MulticastLoopback { .. } => "set_ipv6_multicast_loopback",
SocketRequest::GetIpv6MulticastLoopback { .. } => "get_ipv6_multicast_loopback",
SocketRequest::SetIpv6Only { .. } => "set_ipv6_only",
SocketRequest::GetIpv6Only { .. } => "get_ipv6_only",
SocketRequest::SetIpv6ReceiveTrafficClass { .. } => "set_ipv6_receive_traffic_class",
SocketRequest::GetIpv6ReceiveTrafficClass { .. } => "get_ipv6_receive_traffic_class",
SocketRequest::SetIpv6TrafficClass { .. } => "set_ipv6_traffic_class",
SocketRequest::GetIpv6TrafficClass { .. } => "get_ipv6_traffic_class",
SocketRequest::SetIpv6ReceivePacketInfo { .. } => "set_ipv6_receive_packet_info",
SocketRequest::GetIpv6ReceivePacketInfo { .. } => "get_ipv6_receive_packet_info",
SocketRequest::GetOriginalDestination { .. } => "get_original_destination",
SocketRequest::Describe { .. } => "describe",
SocketRequest::RecvMsg { .. } => "recv_msg",
SocketRequest::SendMsg { .. } => "send_msg",
SocketRequest::GetInfo { .. } => "get_info",
SocketRequest::SetIpHeaderIncluded { .. } => "set_ip_header_included",
SocketRequest::GetIpHeaderIncluded { .. } => "get_ip_header_included",
SocketRequest::SetIcmpv6Filter { .. } => "set_icmpv6_filter",
SocketRequest::GetIcmpv6Filter { .. } => "get_icmpv6_filter",
SocketRequest::SetIpv6Checksum { .. } => "set_ipv6_checksum",
SocketRequest::GetIpv6Checksum { .. } => "get_ipv6_checksum",
}
}
}
#[derive(Debug, Clone)]
pub struct SocketControlHandle {
inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
}
impl fidl::endpoints::ControlHandle for SocketControlHandle {
fn shutdown(&self) {
self.inner.shutdown()
}
fn shutdown_with_epitaph(&self, status: zx_status::Status) {
self.inner.shutdown_with_epitaph(status)
}
fn is_closed(&self) -> bool {
self.inner.channel().is_closed()
}
fn on_closed(&self) -> fidl::OnSignalsRef<'_> {
self.inner.channel().on_closed()
}
#[cfg(target_os = "fuchsia")]
fn signal_peer(
&self,
clear_mask: zx::Signals,
set_mask: zx::Signals,
) -> Result<(), zx_status::Status> {
use fidl::Peered;
self.inner.channel().signal_peer(clear_mask, set_mask)
}
}
impl SocketControlHandle {}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketCloseResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketCloseResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketCloseResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketCloseResponder {
pub fn send(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(&self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
self.control_handle
.inner
.send::<fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>>(
result,
self.tx_id,
0x5ac5d459ad7f657e,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketQueryResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketQueryResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketQueryResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketQueryResponder {
pub fn send(self, mut protocol: &[u8]) -> Result<(), fidl::Error> {
let _result = self.send_raw(protocol);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(self, mut protocol: &[u8]) -> Result<(), fidl::Error> {
let _result = self.send_raw(protocol);
self.drop_without_shutdown();
_result
}
fn send_raw(&self, mut protocol: &[u8]) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl_fuchsia_unknown::QueryableQueryResponse>(
(protocol,),
self.tx_id,
0x2658edee9decfc06,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetReuseAddressResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetReuseAddressResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetReuseAddressResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetReuseAddressResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x1fd74ee8b9a4a876,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetReuseAddressResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetReuseAddressResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetReuseAddressResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetReuseAddressResponder {
pub fn send(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetReuseAddressResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x67b7206b8d1bc0a5,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetErrorResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetErrorResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetErrorResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetErrorResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x5aad39b33e5f6ebb,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetBroadcastResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetBroadcastResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetBroadcastResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetBroadcastResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x6023e081ce3cd947,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetBroadcastResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetBroadcastResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetBroadcastResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetBroadcastResponder {
pub fn send(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetBroadcastResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x68796fc556f9780d,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetSendBufferResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetSendBufferResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetSendBufferResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetSendBufferResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x756eac32d73a7a70,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetSendBufferResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetSendBufferResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetSendBufferResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetSendBufferResponder {
pub fn send(
self,
mut result: Result<u64, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<u64, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<u64, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetSendBufferResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value_bytes| (value_bytes,)),
self.tx_id,
0x78a52fd9c7b2410b,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetReceiveBufferResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetReceiveBufferResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetReceiveBufferResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetReceiveBufferResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x6b0cf2f1919c7001,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetReceiveBufferResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetReceiveBufferResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetReceiveBufferResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetReceiveBufferResponder {
pub fn send(
self,
mut result: Result<u64, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<u64, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<u64, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetReceiveBufferResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value_bytes| (value_bytes,)),
self.tx_id,
0x14c1a4b64f709e5c,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetKeepAliveResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetKeepAliveResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetKeepAliveResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetKeepAliveResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x572df8f0b920d2c7,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetKeepAliveResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetKeepAliveResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetKeepAliveResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetKeepAliveResponder {
pub fn send(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetKeepAliveResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x2dd29d3215f2c9d2,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetOutOfBandInlineResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetOutOfBandInlineResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetOutOfBandInlineResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetOutOfBandInlineResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x3ecb49968bee439,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetOutOfBandInlineResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetOutOfBandInlineResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetOutOfBandInlineResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetOutOfBandInlineResponder {
pub fn send(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetOutOfBandInlineResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x348c1ab3aeca1745,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetNoCheckResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetNoCheckResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetNoCheckResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetNoCheckResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x6bbf00c53a4c78c2,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetNoCheckResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetNoCheckResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetNoCheckResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetNoCheckResponder {
pub fn send(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetNoCheckResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x2cd4249286417694,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetLingerResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetLingerResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetLingerResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetLingerResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x45386351246e998e,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetLingerResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetLingerResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetLingerResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetLingerResponder {
pub fn send(
self,
mut result: Result<(bool, u32), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(bool, u32), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(bool, u32), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetLingerResponse,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x48eb20fc5ccb0e45,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetReusePortResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetReusePortResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetReusePortResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetReusePortResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x24dd3e5cb36d9ccb,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetReusePortResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetReusePortResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetReusePortResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetReusePortResponder {
pub fn send(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetReusePortResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x7a112c1ab54ff828,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetAcceptConnResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetAcceptConnResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetAcceptConnResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetAcceptConnResponder {
pub fn send(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetAcceptConnResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x67ce6db6c2ec8966,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetBindToDeviceResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetBindToDeviceResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetBindToDeviceResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetBindToDeviceResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x2118b483f28aafc4,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetBindToDeviceResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetBindToDeviceResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetBindToDeviceResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetBindToDeviceResponder {
pub fn send(
self,
mut result: Result<&str, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<&str, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<&str, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetBindToDeviceResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x1ab1fbf0ef7906c8,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetBindToInterfaceIndexResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetBindToInterfaceIndexResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetBindToInterfaceIndexResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetBindToInterfaceIndexResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x6e387a0def00821,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetBindToInterfaceIndexResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetBindToInterfaceIndexResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetBindToInterfaceIndexResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetBindToInterfaceIndexResponder {
pub fn send(
self,
mut result: Result<u64, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<u64, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<u64, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetBindToInterfaceIndexResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x59c31dd3e3078295,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetTimestampResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetTimestampResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetTimestampResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetTimestampResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x285d6516c263d839,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetTimestampResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetTimestampResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetTimestampResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetTimestampResponder {
pub fn send(
self,
mut result: Result<fidl_fuchsia_posix_socket::TimestampOption, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<fidl_fuchsia_posix_socket::TimestampOption, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<fidl_fuchsia_posix_socket::TimestampOption, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetTimestampResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x49f2fffbbcc2bd27,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetMarkResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetMarkResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetMarkResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetMarkResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x6ead6de09f653236,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetMarkResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetMarkResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetMarkResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetMarkResponder {
pub fn send(
self,
mut result: Result<&fidl_fuchsia_posix_socket::OptionalUint32, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<&fidl_fuchsia_posix_socket::OptionalUint32, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<&fidl_fuchsia_posix_socket::OptionalUint32, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseSocketGetMarkResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|mark| (mark,)),
self.tx_id,
0x57a2752c61d93d47,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketBindResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketBindResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketBindResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketBindResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x4bc6400ae92125d,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketConnectResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketConnectResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketConnectResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketConnectResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x5f05f19bfdd38871,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketDisconnectResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketDisconnectResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketDisconnectResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketDisconnectResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x74e63b91f7b29b2,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetSockNameResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetSockNameResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetSockNameResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetSockNameResponder {
pub fn send(
self,
mut result: Result<&fidl_fuchsia_net::SocketAddress, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<&fidl_fuchsia_net::SocketAddress, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<&fidl_fuchsia_net::SocketAddress, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetSockNameResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|addr| (addr,)),
self.tx_id,
0x475f23f84a1a4f85,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetPeerNameResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetPeerNameResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetPeerNameResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetPeerNameResponder {
pub fn send(
self,
mut result: Result<&fidl_fuchsia_net::SocketAddress, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<&fidl_fuchsia_net::SocketAddress, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<&fidl_fuchsia_net::SocketAddress, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetPeerNameResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|addr| (addr,)),
self.tx_id,
0x1ffecf4bd5b6432e,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketShutdownResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketShutdownResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketShutdownResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketShutdownResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x247f38b6db68c336,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetIpTypeOfServiceResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetIpTypeOfServiceResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetIpTypeOfServiceResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetIpTypeOfServiceResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x995c600475b6d46,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetIpTypeOfServiceResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetIpTypeOfServiceResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetIpTypeOfServiceResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetIpTypeOfServiceResponder {
pub fn send(
self,
mut result: Result<u8, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<u8, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<u8, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTypeOfServiceResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x3814a04259f75fcb,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetIpTtlResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetIpTtlResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetIpTtlResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetIpTtlResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x29e2424b433ae1ef,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetIpTtlResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetIpTtlResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetIpTtlResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetIpTtlResponder {
pub fn send(
self,
mut result: Result<u8, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<u8, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<u8, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTtlResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x47e47fa1f24da471,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetIpPacketInfoResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetIpPacketInfoResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetIpPacketInfoResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetIpPacketInfoResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x392d16bee20c0e16,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetIpPacketInfoResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetIpPacketInfoResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetIpPacketInfoResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetIpPacketInfoResponder {
pub fn send(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpPacketInfoResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x54b505f242280740,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetIpReceiveTypeOfServiceResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetIpReceiveTypeOfServiceResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetIpReceiveTypeOfServiceResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetIpReceiveTypeOfServiceResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x6c4f6714995f84ef,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetIpReceiveTypeOfServiceResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetIpReceiveTypeOfServiceResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetIpReceiveTypeOfServiceResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetIpReceiveTypeOfServiceResponder {
pub fn send(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTypeOfServiceResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x4158ba7dc2795960,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetIpReceiveTtlResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetIpReceiveTtlResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetIpReceiveTtlResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetIpReceiveTtlResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x46f15be0ce0ab82b,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetIpReceiveTtlResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetIpReceiveTtlResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetIpReceiveTtlResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetIpReceiveTtlResponder {
pub fn send(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTtlResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x678ddd5a5dfa2eb5,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetIpMulticastInterfaceResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetIpMulticastInterfaceResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetIpMulticastInterfaceResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetIpMulticastInterfaceResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x752fbfa9b12befe,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetIpMulticastInterfaceResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetIpMulticastInterfaceResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetIpMulticastInterfaceResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetIpMulticastInterfaceResponder {
pub fn send(
self,
mut result: Result<&fidl_fuchsia_net::Ipv4Address, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<&fidl_fuchsia_net::Ipv4Address, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<&fidl_fuchsia_net::Ipv4Address, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastInterfaceResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x320bd14c4df046c4,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetIpMulticastTtlResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetIpMulticastTtlResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetIpMulticastTtlResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetIpMulticastTtlResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x63134d53772916a1,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetIpMulticastTtlResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetIpMulticastTtlResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetIpMulticastTtlResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetIpMulticastTtlResponder {
pub fn send(
self,
mut result: Result<u8, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<u8, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<u8, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastTtlResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x4665cd378f39e1a,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetIpMulticastLoopbackResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetIpMulticastLoopbackResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetIpMulticastLoopbackResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetIpMulticastLoopbackResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x20c55c11f00943ea,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetIpMulticastLoopbackResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetIpMulticastLoopbackResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetIpMulticastLoopbackResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetIpMulticastLoopbackResponder {
pub fn send(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastLoopbackResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x3b6b26ff558298f2,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketAddIpMembershipResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketAddIpMembershipResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketAddIpMembershipResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketAddIpMembershipResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x76bc7df115a3b4d0,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketDropIpMembershipResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketDropIpMembershipResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketDropIpMembershipResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketDropIpMembershipResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x2888f3099188d03,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetIpTransparentResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetIpTransparentResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetIpTransparentResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetIpTransparentResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x1ae532b0c066e3a0,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetIpTransparentResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetIpTransparentResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetIpTransparentResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetIpTransparentResponder {
pub fn send(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTransparentResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x51d43695962ebfb5,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetIpReceiveOriginalDestinationAddressResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetIpReceiveOriginalDestinationAddressResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetIpReceiveOriginalDestinationAddressResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetIpReceiveOriginalDestinationAddressResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x4722b4ce52f7840,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetIpReceiveOriginalDestinationAddressResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetIpReceiveOriginalDestinationAddressResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetIpReceiveOriginalDestinationAddressResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetIpReceiveOriginalDestinationAddressResponder {
pub fn send(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveOriginalDestinationAddressResponse, fidl_fuchsia_posix::Errno>>(
result.map(|value| (value,)),
self.tx_id,
0x2a0e7dc5d6bfdfe9,
fidl::encoding::DynamicFlags::empty()
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketAddIpv6MembershipResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketAddIpv6MembershipResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketAddIpv6MembershipResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketAddIpv6MembershipResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x7c94727acb4ea4b3,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketDropIpv6MembershipResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketDropIpv6MembershipResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketDropIpv6MembershipResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketDropIpv6MembershipResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x42104c70ccaba304,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetIpv6MulticastInterfaceResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetIpv6MulticastInterfaceResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetIpv6MulticastInterfaceResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetIpv6MulticastInterfaceResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x135f76db3774ab3b,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetIpv6MulticastInterfaceResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetIpv6MulticastInterfaceResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetIpv6MulticastInterfaceResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetIpv6MulticastInterfaceResponder {
pub fn send(
self,
mut result: Result<u64, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<u64, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<u64, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastInterfaceResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x1f26fcdd348f1882,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetIpv6UnicastHopsResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetIpv6UnicastHopsResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetIpv6UnicastHopsResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetIpv6UnicastHopsResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x157d51e98f462859,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetIpv6UnicastHopsResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetIpv6UnicastHopsResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetIpv6UnicastHopsResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetIpv6UnicastHopsResponder {
pub fn send(
self,
mut result: Result<u8, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<u8, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<u8, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6UnicastHopsResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x21f4641cad8bd8d2,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetIpv6ReceiveHopLimitResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetIpv6ReceiveHopLimitResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetIpv6ReceiveHopLimitResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetIpv6ReceiveHopLimitResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x5c24808ed2e84a1e,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetIpv6ReceiveHopLimitResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetIpv6ReceiveHopLimitResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetIpv6ReceiveHopLimitResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetIpv6ReceiveHopLimitResponder {
pub fn send(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveHopLimitResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x341e06689885b4c0,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetIpv6MulticastHopsResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetIpv6MulticastHopsResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetIpv6MulticastHopsResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetIpv6MulticastHopsResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x25b9cd4d181f82c1,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetIpv6MulticastHopsResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetIpv6MulticastHopsResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetIpv6MulticastHopsResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetIpv6MulticastHopsResponder {
pub fn send(
self,
mut result: Result<u8, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<u8, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<u8, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastHopsResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x52916948a365012a,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetIpv6MulticastLoopbackResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetIpv6MulticastLoopbackResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetIpv6MulticastLoopbackResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetIpv6MulticastLoopbackResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x55701c409ff41b40,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetIpv6MulticastLoopbackResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetIpv6MulticastLoopbackResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetIpv6MulticastLoopbackResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetIpv6MulticastLoopbackResponder {
pub fn send(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastLoopbackResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x4415b701fde319c3,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetIpv6OnlyResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetIpv6OnlyResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetIpv6OnlyResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetIpv6OnlyResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x4873f1364758cbba,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetIpv6OnlyResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetIpv6OnlyResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetIpv6OnlyResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetIpv6OnlyResponder {
pub fn send(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6OnlyResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x4aa3340a1a26b89c,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetIpv6ReceiveTrafficClassResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetIpv6ReceiveTrafficClassResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetIpv6ReceiveTrafficClassResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetIpv6ReceiveTrafficClassResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x58f07c8788d099a0,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetIpv6ReceiveTrafficClassResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetIpv6ReceiveTrafficClassResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetIpv6ReceiveTrafficClassResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetIpv6ReceiveTrafficClassResponder {
pub fn send(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveTrafficClassResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x2e334df1da553ffa,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetIpv6TrafficClassResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetIpv6TrafficClassResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetIpv6TrafficClassResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetIpv6TrafficClassResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x6af077800c5a0b4f,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetIpv6TrafficClassResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetIpv6TrafficClassResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetIpv6TrafficClassResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetIpv6TrafficClassResponder {
pub fn send(
self,
mut result: Result<u8, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<u8, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<u8, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6TrafficClassResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x6baf6eed8fc2f04,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetIpv6ReceivePacketInfoResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetIpv6ReceivePacketInfoResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetIpv6ReceivePacketInfoResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetIpv6ReceivePacketInfoResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x19259775b1a92768,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetIpv6ReceivePacketInfoResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetIpv6ReceivePacketInfoResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetIpv6ReceivePacketInfoResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetIpv6ReceivePacketInfoResponder {
pub fn send(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceivePacketInfoResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x7acd4a2775baec75,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetOriginalDestinationResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetOriginalDestinationResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetOriginalDestinationResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetOriginalDestinationResponder {
pub fn send(
self,
mut result: Result<&fidl_fuchsia_net::SocketAddress, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<&fidl_fuchsia_net::SocketAddress, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<&fidl_fuchsia_net::SocketAddress, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl_fuchsia_posix_socket::BaseNetworkSocketGetOriginalDestinationResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x38bf28f0dafdbac0,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketDescribeResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketDescribeResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketDescribeResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketDescribeResponder {
pub fn send(self, mut payload: SocketDescribeResponse) -> Result<(), fidl::Error> {
let _result = self.send_raw(payload);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut payload: SocketDescribeResponse,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(payload);
self.drop_without_shutdown();
_result
}
fn send_raw(&self, mut payload: SocketDescribeResponse) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<SocketDescribeResponse>(
&mut payload,
self.tx_id,
0x335706eccf54a135,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketRecvMsgResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketRecvMsgResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketRecvMsgResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketRecvMsgResponder {
pub fn send(
self,
mut result: Result<
(
Option<&fidl_fuchsia_net::SocketAddress>,
&[u8],
&fidl_fuchsia_posix_socket::NetworkSocketRecvControlData,
u32,
),
fidl_fuchsia_posix::Errno,
>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<
(
Option<&fidl_fuchsia_net::SocketAddress>,
&[u8],
&fidl_fuchsia_posix_socket::NetworkSocketRecvControlData,
u32,
),
fidl_fuchsia_posix::Errno,
>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<
(
Option<&fidl_fuchsia_net::SocketAddress>,
&[u8],
&fidl_fuchsia_posix_socket::NetworkSocketRecvControlData,
u32,
),
fidl_fuchsia_posix::Errno,
>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
SocketRecvMsgResponse,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x1dfb695351d3aa1d,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSendMsgResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSendMsgResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSendMsgResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSendMsgResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x2cf1eac9a7fc8958,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetInfoResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetInfoResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetInfoResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetInfoResponder {
pub fn send(
self,
mut result: Result<
(fidl_fuchsia_posix_socket::Domain, &ProtocolAssociation),
fidl_fuchsia_posix::Errno,
>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<
(fidl_fuchsia_posix_socket::Domain, &ProtocolAssociation),
fidl_fuchsia_posix::Errno,
>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<
(fidl_fuchsia_posix_socket::Domain, &ProtocolAssociation),
fidl_fuchsia_posix::Errno,
>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
SocketGetInfoResponse,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x39676f75aec339ba,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetIpHeaderIncludedResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetIpHeaderIncludedResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetIpHeaderIncludedResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetIpHeaderIncludedResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x5d06a606d95e8f3,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetIpHeaderIncludedResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetIpHeaderIncludedResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetIpHeaderIncludedResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetIpHeaderIncludedResponder {
pub fn send(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<bool, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
SocketGetIpHeaderIncludedResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|value| (value,)),
self.tx_id,
0x76125ad1f4d175f6,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetIcmpv6FilterResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetIcmpv6FilterResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetIcmpv6FilterResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetIcmpv6FilterResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x4ebea92a43ae68a9,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetIcmpv6FilterResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetIcmpv6FilterResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetIcmpv6FilterResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetIcmpv6FilterResponder {
pub fn send(
self,
mut result: Result<&Icmpv6Filter, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<&Icmpv6Filter, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<&Icmpv6Filter, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
SocketGetIcmpv6FilterResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|filter| (filter,)),
self.tx_id,
0x43bd4f3bc0970ace,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketSetIpv6ChecksumResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketSetIpv6ChecksumResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketSetIpv6ChecksumResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketSetIpv6ChecksumResponder {
pub fn send(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<(), fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
fidl::encoding::EmptyStruct,
fidl_fuchsia_posix::Errno,
>>(
result,
self.tx_id,
0x18b7809577199cb4,
fidl::encoding::DynamicFlags::empty(),
)
}
}
#[must_use = "FIDL methods require a response to be sent"]
#[derive(Debug)]
pub struct SocketGetIpv6ChecksumResponder {
control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
tx_id: u32,
}
impl std::ops::Drop for SocketGetIpv6ChecksumResponder {
fn drop(&mut self) {
self.control_handle.shutdown();
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
}
}
impl fidl::endpoints::Responder for SocketGetIpv6ChecksumResponder {
type ControlHandle = SocketControlHandle;
fn control_handle(&self) -> &SocketControlHandle {
&self.control_handle
}
fn drop_without_shutdown(mut self) {
unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
std::mem::forget(self);
}
}
impl SocketGetIpv6ChecksumResponder {
pub fn send(
self,
mut result: Result<&Ipv6ChecksumConfiguration, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
if _result.is_err() {
self.control_handle.shutdown();
}
self.drop_without_shutdown();
_result
}
pub fn send_no_shutdown_on_err(
self,
mut result: Result<&Ipv6ChecksumConfiguration, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
let _result = self.send_raw(result);
self.drop_without_shutdown();
_result
}
fn send_raw(
&self,
mut result: Result<&Ipv6ChecksumConfiguration, fidl_fuchsia_posix::Errno>,
) -> Result<(), fidl::Error> {
self.control_handle.inner.send::<fidl::encoding::ResultType<
SocketGetIpv6ChecksumResponse,
fidl_fuchsia_posix::Errno,
>>(
result.map(|config| (config,)),
self.tx_id,
0x1847bf5b2d263dd,
fidl::encoding::DynamicFlags::empty(),
)
}
}
mod internal {
use super::*;
impl fidl::encoding::ValueTypeMarker for Empty {
type Borrowed<'a> = &'a Self;
fn borrow(value: &<Self as fidl::encoding::TypeMarker>::Owned) -> Self::Borrowed<'_> {
value
}
}
unsafe impl fidl::encoding::TypeMarker for Empty {
type Owned = Self;
#[inline(always)]
fn inline_align(_context: fidl::encoding::Context) -> usize {
1
}
#[inline(always)]
fn inline_size(_context: fidl::encoding::Context) -> usize {
1
}
}
unsafe impl<D: fidl::encoding::ResourceDialect> fidl::encoding::Encode<Empty, D> for &Empty {
#[inline]
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<'_, D>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<Empty>(offset);
encoder.write_num(0u8, offset);
Ok(())
}
}
impl<D: fidl::encoding::ResourceDialect> fidl::encoding::Decode<Self, D> for Empty {
#[inline(always)]
fn new_empty() -> Self {
Self
}
#[inline]
unsafe fn decode(
&mut self,
decoder: &mut fidl::encoding::Decoder<'_, D>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
decoder.debug_check_bounds::<Self>(offset);
match decoder.read_num::<u8>(offset) {
0 => Ok(()),
_ => Err(fidl::Error::Invalid),
}
}
}
impl fidl::encoding::ValueTypeMarker for Icmpv6Filter {
type Borrowed<'a> = &'a Self;
fn borrow(value: &<Self as fidl::encoding::TypeMarker>::Owned) -> Self::Borrowed<'_> {
value
}
}
unsafe impl fidl::encoding::TypeMarker for Icmpv6Filter {
type Owned = Self;
#[inline(always)]
fn inline_align(_context: fidl::encoding::Context) -> usize {
4
}
#[inline(always)]
fn inline_size(_context: fidl::encoding::Context) -> usize {
32
}
#[inline(always)]
fn encode_is_copy() -> bool {
true
}
#[inline(always)]
fn decode_is_copy() -> bool {
true
}
}
unsafe impl<D: fidl::encoding::ResourceDialect> fidl::encoding::Encode<Icmpv6Filter, D>
for &Icmpv6Filter
{
#[inline]
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<'_, D>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<Icmpv6Filter>(offset);
unsafe {
let buf_ptr = encoder.buf.as_mut_ptr().add(offset);
(buf_ptr as *mut Icmpv6Filter)
.write_unaligned((self as *const Icmpv6Filter).read());
}
Ok(())
}
}
unsafe impl<
D: fidl::encoding::ResourceDialect,
T0: fidl::encoding::Encode<fidl::encoding::Array<u32, 8>, D>,
> fidl::encoding::Encode<Icmpv6Filter, D> for (T0,)
{
#[inline]
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<'_, D>,
offset: usize,
depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<Icmpv6Filter>(offset);
self.0.encode(encoder, offset + 0, depth)?;
Ok(())
}
}
impl<D: fidl::encoding::ResourceDialect> fidl::encoding::Decode<Self, D> for Icmpv6Filter {
#[inline(always)]
fn new_empty() -> Self {
Self { blocked_types: fidl::new_empty!(fidl::encoding::Array<u32, 8>, D) }
}
#[inline]
unsafe fn decode(
&mut self,
decoder: &mut fidl::encoding::Decoder<'_, D>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
decoder.debug_check_bounds::<Self>(offset);
let buf_ptr = unsafe { decoder.buf.as_ptr().add(offset) };
unsafe {
std::ptr::copy_nonoverlapping(buf_ptr, self as *mut Self as *mut u8, 32);
}
Ok(())
}
}
impl fidl::encoding::ValueTypeMarker for ProviderSocketRequest {
type Borrowed<'a> = &'a Self;
fn borrow(value: &<Self as fidl::encoding::TypeMarker>::Owned) -> Self::Borrowed<'_> {
value
}
}
unsafe impl fidl::encoding::TypeMarker for ProviderSocketRequest {
type Owned = Self;
#[inline(always)]
fn inline_align(_context: fidl::encoding::Context) -> usize {
8
}
#[inline(always)]
fn inline_size(_context: fidl::encoding::Context) -> usize {
24
}
}
unsafe impl<D: fidl::encoding::ResourceDialect> fidl::encoding::Encode<ProviderSocketRequest, D>
for &ProviderSocketRequest
{
#[inline]
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<'_, D>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<ProviderSocketRequest>(offset);
fidl::encoding::Encode::<ProviderSocketRequest, D>::encode(
(
<fidl_fuchsia_posix_socket::Domain as fidl::encoding::ValueTypeMarker>::borrow(
&self.domain,
),
<ProtocolAssociation as fidl::encoding::ValueTypeMarker>::borrow(&self.proto),
),
encoder,
offset,
_depth,
)
}
}
unsafe impl<
D: fidl::encoding::ResourceDialect,
T0: fidl::encoding::Encode<fidl_fuchsia_posix_socket::Domain, D>,
T1: fidl::encoding::Encode<ProtocolAssociation, D>,
> fidl::encoding::Encode<ProviderSocketRequest, D> for (T0, T1)
{
#[inline]
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<'_, D>,
offset: usize,
depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<ProviderSocketRequest>(offset);
unsafe {
let ptr = encoder.buf.as_mut_ptr().add(offset).offset(0);
(ptr as *mut u64).write_unaligned(0);
}
self.0.encode(encoder, offset + 0, depth)?;
self.1.encode(encoder, offset + 8, depth)?;
Ok(())
}
}
impl<D: fidl::encoding::ResourceDialect> fidl::encoding::Decode<Self, D> for ProviderSocketRequest {
#[inline(always)]
fn new_empty() -> Self {
Self {
domain: fidl::new_empty!(fidl_fuchsia_posix_socket::Domain, D),
proto: fidl::new_empty!(ProtocolAssociation, D),
}
}
#[inline]
unsafe fn decode(
&mut self,
decoder: &mut fidl::encoding::Decoder<'_, D>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
decoder.debug_check_bounds::<Self>(offset);
let ptr = unsafe { decoder.buf.as_ptr().add(offset).offset(0) };
let padval = unsafe { (ptr as *const u64).read_unaligned() };
let mask = 0xffffffffffff0000u64;
let maskedval = padval & mask;
if maskedval != 0 {
return Err(fidl::Error::NonZeroPadding {
padding_start: offset + 0 + ((mask as u64).trailing_zeros() / 8) as usize,
});
}
fidl::decode!(
fidl_fuchsia_posix_socket::Domain,
D,
&mut self.domain,
decoder,
offset + 0,
_depth
)?;
fidl::decode!(ProtocolAssociation, D, &mut self.proto, decoder, offset + 8, _depth)?;
Ok(())
}
}
impl fidl::encoding::ResourceTypeMarker for ProviderSocketResponse {
type Borrowed<'a> = &'a mut Self;
fn take_or_borrow<'a>(
value: &'a mut <Self as fidl::encoding::TypeMarker>::Owned,
) -> Self::Borrowed<'a> {
value
}
}
unsafe impl fidl::encoding::TypeMarker for ProviderSocketResponse {
type Owned = Self;
#[inline(always)]
fn inline_align(_context: fidl::encoding::Context) -> usize {
4
}
#[inline(always)]
fn inline_size(_context: fidl::encoding::Context) -> usize {
4
}
}
unsafe impl
fidl::encoding::Encode<
ProviderSocketResponse,
fidl::encoding::DefaultFuchsiaResourceDialect,
> for &mut ProviderSocketResponse
{
#[inline]
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<
'_,
fidl::encoding::DefaultFuchsiaResourceDialect,
>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<ProviderSocketResponse>(offset);
fidl::encoding::Encode::<ProviderSocketResponse, fidl::encoding::DefaultFuchsiaResourceDialect>::encode(
(
<fidl::encoding::Endpoint<fidl::endpoints::ClientEnd<SocketMarker>> as fidl::encoding::ResourceTypeMarker>::take_or_borrow(&mut self.s),
),
encoder, offset, _depth
)
}
}
unsafe impl<
T0: fidl::encoding::Encode<
fidl::encoding::Endpoint<fidl::endpoints::ClientEnd<SocketMarker>>,
fidl::encoding::DefaultFuchsiaResourceDialect,
>,
>
fidl::encoding::Encode<
ProviderSocketResponse,
fidl::encoding::DefaultFuchsiaResourceDialect,
> for (T0,)
{
#[inline]
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<
'_,
fidl::encoding::DefaultFuchsiaResourceDialect,
>,
offset: usize,
depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<ProviderSocketResponse>(offset);
self.0.encode(encoder, offset + 0, depth)?;
Ok(())
}
}
impl fidl::encoding::Decode<Self, fidl::encoding::DefaultFuchsiaResourceDialect>
for ProviderSocketResponse
{
#[inline(always)]
fn new_empty() -> Self {
Self {
s: fidl::new_empty!(
fidl::encoding::Endpoint<fidl::endpoints::ClientEnd<SocketMarker>>,
fidl::encoding::DefaultFuchsiaResourceDialect
),
}
}
#[inline]
unsafe fn decode(
&mut self,
decoder: &mut fidl::encoding::Decoder<
'_,
fidl::encoding::DefaultFuchsiaResourceDialect,
>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
decoder.debug_check_bounds::<Self>(offset);
fidl::decode!(
fidl::encoding::Endpoint<fidl::endpoints::ClientEnd<SocketMarker>>,
fidl::encoding::DefaultFuchsiaResourceDialect,
&mut self.s,
decoder,
offset + 0,
_depth
)?;
Ok(())
}
}
impl fidl::encoding::ValueTypeMarker for SocketRecvMsgRequest {
type Borrowed<'a> = &'a Self;
fn borrow(value: &<Self as fidl::encoding::TypeMarker>::Owned) -> Self::Borrowed<'_> {
value
}
}
unsafe impl fidl::encoding::TypeMarker for SocketRecvMsgRequest {
type Owned = Self;
#[inline(always)]
fn inline_align(_context: fidl::encoding::Context) -> usize {
4
}
#[inline(always)]
fn inline_size(_context: fidl::encoding::Context) -> usize {
12
}
}
unsafe impl<D: fidl::encoding::ResourceDialect> fidl::encoding::Encode<SocketRecvMsgRequest, D>
for &SocketRecvMsgRequest
{
#[inline]
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<'_, D>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<SocketRecvMsgRequest>(offset);
fidl::encoding::Encode::<SocketRecvMsgRequest, D>::encode(
(
<bool as fidl::encoding::ValueTypeMarker>::borrow(&self.want_addr),
<u32 as fidl::encoding::ValueTypeMarker>::borrow(&self.data_len),
<bool as fidl::encoding::ValueTypeMarker>::borrow(&self.want_control),
<fidl_fuchsia_posix_socket::RecvMsgFlags as fidl::encoding::ValueTypeMarker>::borrow(&self.flags),
),
encoder, offset, _depth
)
}
}
unsafe impl<
D: fidl::encoding::ResourceDialect,
T0: fidl::encoding::Encode<bool, D>,
T1: fidl::encoding::Encode<u32, D>,
T2: fidl::encoding::Encode<bool, D>,
T3: fidl::encoding::Encode<fidl_fuchsia_posix_socket::RecvMsgFlags, D>,
> fidl::encoding::Encode<SocketRecvMsgRequest, D> for (T0, T1, T2, T3)
{
#[inline]
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<'_, D>,
offset: usize,
depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<SocketRecvMsgRequest>(offset);
unsafe {
let ptr = encoder.buf.as_mut_ptr().add(offset).offset(0);
(ptr as *mut u32).write_unaligned(0);
}
unsafe {
let ptr = encoder.buf.as_mut_ptr().add(offset).offset(8);
(ptr as *mut u32).write_unaligned(0);
}
self.0.encode(encoder, offset + 0, depth)?;
self.1.encode(encoder, offset + 4, depth)?;
self.2.encode(encoder, offset + 8, depth)?;
self.3.encode(encoder, offset + 10, depth)?;
Ok(())
}
}
impl<D: fidl::encoding::ResourceDialect> fidl::encoding::Decode<Self, D> for SocketRecvMsgRequest {
#[inline(always)]
fn new_empty() -> Self {
Self {
want_addr: fidl::new_empty!(bool, D),
data_len: fidl::new_empty!(u32, D),
want_control: fidl::new_empty!(bool, D),
flags: fidl::new_empty!(fidl_fuchsia_posix_socket::RecvMsgFlags, D),
}
}
#[inline]
unsafe fn decode(
&mut self,
decoder: &mut fidl::encoding::Decoder<'_, D>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
decoder.debug_check_bounds::<Self>(offset);
let ptr = unsafe { decoder.buf.as_ptr().add(offset).offset(0) };
let padval = unsafe { (ptr as *const u32).read_unaligned() };
let mask = 0xffffff00u32;
let maskedval = padval & mask;
if maskedval != 0 {
return Err(fidl::Error::NonZeroPadding {
padding_start: offset + 0 + ((mask as u64).trailing_zeros() / 8) as usize,
});
}
let ptr = unsafe { decoder.buf.as_ptr().add(offset).offset(8) };
let padval = unsafe { (ptr as *const u32).read_unaligned() };
let mask = 0xff00u32;
let maskedval = padval & mask;
if maskedval != 0 {
return Err(fidl::Error::NonZeroPadding {
padding_start: offset + 8 + ((mask as u64).trailing_zeros() / 8) as usize,
});
}
fidl::decode!(bool, D, &mut self.want_addr, decoder, offset + 0, _depth)?;
fidl::decode!(u32, D, &mut self.data_len, decoder, offset + 4, _depth)?;
fidl::decode!(bool, D, &mut self.want_control, decoder, offset + 8, _depth)?;
fidl::decode!(
fidl_fuchsia_posix_socket::RecvMsgFlags,
D,
&mut self.flags,
decoder,
offset + 10,
_depth
)?;
Ok(())
}
}
impl fidl::encoding::ValueTypeMarker for SocketSendMsgRequest {
type Borrowed<'a> = &'a Self;
fn borrow(value: &<Self as fidl::encoding::TypeMarker>::Owned) -> Self::Borrowed<'_> {
value
}
}
unsafe impl fidl::encoding::TypeMarker for SocketSendMsgRequest {
type Owned = Self;
#[inline(always)]
fn inline_align(_context: fidl::encoding::Context) -> usize {
8
}
#[inline(always)]
fn inline_size(_context: fidl::encoding::Context) -> usize {
56
}
}
unsafe impl<D: fidl::encoding::ResourceDialect> fidl::encoding::Encode<SocketSendMsgRequest, D>
for &SocketSendMsgRequest
{
#[inline]
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<'_, D>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<SocketSendMsgRequest>(offset);
fidl::encoding::Encode::<SocketSendMsgRequest, D>::encode(
(
<fidl::encoding::OptionalUnion<fidl_fuchsia_net::SocketAddress> as fidl::encoding::ValueTypeMarker>::borrow(&self.addr),
<fidl::encoding::UnboundedVector<u8> as fidl::encoding::ValueTypeMarker>::borrow(&self.data),
<fidl_fuchsia_posix_socket::NetworkSocketSendControlData as fidl::encoding::ValueTypeMarker>::borrow(&self.control),
<fidl_fuchsia_posix_socket::SendMsgFlags as fidl::encoding::ValueTypeMarker>::borrow(&self.flags),
),
encoder, offset, _depth
)
}
}
unsafe impl<
D: fidl::encoding::ResourceDialect,
T0: fidl::encoding::Encode<
fidl::encoding::OptionalUnion<fidl_fuchsia_net::SocketAddress>,
D,
>,
T1: fidl::encoding::Encode<fidl::encoding::UnboundedVector<u8>, D>,
T2: fidl::encoding::Encode<fidl_fuchsia_posix_socket::NetworkSocketSendControlData, D>,
T3: fidl::encoding::Encode<fidl_fuchsia_posix_socket::SendMsgFlags, D>,
> fidl::encoding::Encode<SocketSendMsgRequest, D> for (T0, T1, T2, T3)
{
#[inline]
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<'_, D>,
offset: usize,
depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<SocketSendMsgRequest>(offset);
unsafe {
let ptr = encoder.buf.as_mut_ptr().add(offset).offset(48);
(ptr as *mut u64).write_unaligned(0);
}
self.0.encode(encoder, offset + 0, depth)?;
self.1.encode(encoder, offset + 16, depth)?;
self.2.encode(encoder, offset + 32, depth)?;
self.3.encode(encoder, offset + 48, depth)?;
Ok(())
}
}
impl<D: fidl::encoding::ResourceDialect> fidl::encoding::Decode<Self, D> for SocketSendMsgRequest {
#[inline(always)]
fn new_empty() -> Self {
Self {
addr: fidl::new_empty!(
fidl::encoding::OptionalUnion<fidl_fuchsia_net::SocketAddress>,
D
),
data: fidl::new_empty!(fidl::encoding::UnboundedVector<u8>, D),
control: fidl::new_empty!(
fidl_fuchsia_posix_socket::NetworkSocketSendControlData,
D
),
flags: fidl::new_empty!(fidl_fuchsia_posix_socket::SendMsgFlags, D),
}
}
#[inline]
unsafe fn decode(
&mut self,
decoder: &mut fidl::encoding::Decoder<'_, D>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
decoder.debug_check_bounds::<Self>(offset);
let ptr = unsafe { decoder.buf.as_ptr().add(offset).offset(48) };
let padval = unsafe { (ptr as *const u64).read_unaligned() };
let mask = 0xffffffffffff0000u64;
let maskedval = padval & mask;
if maskedval != 0 {
return Err(fidl::Error::NonZeroPadding {
padding_start: offset + 48 + ((mask as u64).trailing_zeros() / 8) as usize,
});
}
fidl::decode!(
fidl::encoding::OptionalUnion<fidl_fuchsia_net::SocketAddress>,
D,
&mut self.addr,
decoder,
offset + 0,
_depth
)?;
fidl::decode!(
fidl::encoding::UnboundedVector<u8>,
D,
&mut self.data,
decoder,
offset + 16,
_depth
)?;
fidl::decode!(
fidl_fuchsia_posix_socket::NetworkSocketSendControlData,
D,
&mut self.control,
decoder,
offset + 32,
_depth
)?;
fidl::decode!(
fidl_fuchsia_posix_socket::SendMsgFlags,
D,
&mut self.flags,
decoder,
offset + 48,
_depth
)?;
Ok(())
}
}
impl fidl::encoding::ValueTypeMarker for SocketSetIcmpv6FilterRequest {
type Borrowed<'a> = &'a Self;
fn borrow(value: &<Self as fidl::encoding::TypeMarker>::Owned) -> Self::Borrowed<'_> {
value
}
}
unsafe impl fidl::encoding::TypeMarker for SocketSetIcmpv6FilterRequest {
type Owned = Self;
#[inline(always)]
fn inline_align(_context: fidl::encoding::Context) -> usize {
4
}
#[inline(always)]
fn inline_size(_context: fidl::encoding::Context) -> usize {
32
}
#[inline(always)]
fn encode_is_copy() -> bool {
true
}
#[inline(always)]
fn decode_is_copy() -> bool {
true
}
}
unsafe impl<D: fidl::encoding::ResourceDialect>
fidl::encoding::Encode<SocketSetIcmpv6FilterRequest, D> for &SocketSetIcmpv6FilterRequest
{
#[inline]
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<'_, D>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<SocketSetIcmpv6FilterRequest>(offset);
unsafe {
let buf_ptr = encoder.buf.as_mut_ptr().add(offset);
(buf_ptr as *mut SocketSetIcmpv6FilterRequest)
.write_unaligned((self as *const SocketSetIcmpv6FilterRequest).read());
}
Ok(())
}
}
unsafe impl<D: fidl::encoding::ResourceDialect, T0: fidl::encoding::Encode<Icmpv6Filter, D>>
fidl::encoding::Encode<SocketSetIcmpv6FilterRequest, D> for (T0,)
{
#[inline]
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<'_, D>,
offset: usize,
depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<SocketSetIcmpv6FilterRequest>(offset);
self.0.encode(encoder, offset + 0, depth)?;
Ok(())
}
}
impl<D: fidl::encoding::ResourceDialect> fidl::encoding::Decode<Self, D>
for SocketSetIcmpv6FilterRequest
{
#[inline(always)]
fn new_empty() -> Self {
Self { filter: fidl::new_empty!(Icmpv6Filter, D) }
}
#[inline]
unsafe fn decode(
&mut self,
decoder: &mut fidl::encoding::Decoder<'_, D>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
decoder.debug_check_bounds::<Self>(offset);
let buf_ptr = unsafe { decoder.buf.as_ptr().add(offset) };
unsafe {
std::ptr::copy_nonoverlapping(buf_ptr, self as *mut Self as *mut u8, 32);
}
Ok(())
}
}
impl fidl::encoding::ValueTypeMarker for SocketSetIpHeaderIncludedRequest {
type Borrowed<'a> = &'a Self;
fn borrow(value: &<Self as fidl::encoding::TypeMarker>::Owned) -> Self::Borrowed<'_> {
value
}
}
unsafe impl fidl::encoding::TypeMarker for SocketSetIpHeaderIncludedRequest {
type Owned = Self;
#[inline(always)]
fn inline_align(_context: fidl::encoding::Context) -> usize {
1
}
#[inline(always)]
fn inline_size(_context: fidl::encoding::Context) -> usize {
1
}
}
unsafe impl<D: fidl::encoding::ResourceDialect>
fidl::encoding::Encode<SocketSetIpHeaderIncludedRequest, D>
for &SocketSetIpHeaderIncludedRequest
{
#[inline]
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<'_, D>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<SocketSetIpHeaderIncludedRequest>(offset);
fidl::encoding::Encode::<SocketSetIpHeaderIncludedRequest, D>::encode(
(<bool as fidl::encoding::ValueTypeMarker>::borrow(&self.value),),
encoder,
offset,
_depth,
)
}
}
unsafe impl<D: fidl::encoding::ResourceDialect, T0: fidl::encoding::Encode<bool, D>>
fidl::encoding::Encode<SocketSetIpHeaderIncludedRequest, D> for (T0,)
{
#[inline]
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<'_, D>,
offset: usize,
depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<SocketSetIpHeaderIncludedRequest>(offset);
self.0.encode(encoder, offset + 0, depth)?;
Ok(())
}
}
impl<D: fidl::encoding::ResourceDialect> fidl::encoding::Decode<Self, D>
for SocketSetIpHeaderIncludedRequest
{
#[inline(always)]
fn new_empty() -> Self {
Self { value: fidl::new_empty!(bool, D) }
}
#[inline]
unsafe fn decode(
&mut self,
decoder: &mut fidl::encoding::Decoder<'_, D>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
decoder.debug_check_bounds::<Self>(offset);
fidl::decode!(bool, D, &mut self.value, decoder, offset + 0, _depth)?;
Ok(())
}
}
impl fidl::encoding::ValueTypeMarker for SocketSetIpv6ChecksumRequest {
type Borrowed<'a> = &'a Self;
fn borrow(value: &<Self as fidl::encoding::TypeMarker>::Owned) -> Self::Borrowed<'_> {
value
}
}
unsafe impl fidl::encoding::TypeMarker for SocketSetIpv6ChecksumRequest {
type Owned = Self;
#[inline(always)]
fn inline_align(_context: fidl::encoding::Context) -> usize {
8
}
#[inline(always)]
fn inline_size(_context: fidl::encoding::Context) -> usize {
16
}
}
unsafe impl<D: fidl::encoding::ResourceDialect>
fidl::encoding::Encode<SocketSetIpv6ChecksumRequest, D> for &SocketSetIpv6ChecksumRequest
{
#[inline]
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<'_, D>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<SocketSetIpv6ChecksumRequest>(offset);
fidl::encoding::Encode::<SocketSetIpv6ChecksumRequest, D>::encode(
(<Ipv6ChecksumConfiguration as fidl::encoding::ValueTypeMarker>::borrow(
&self.config,
),),
encoder,
offset,
_depth,
)
}
}
unsafe impl<
D: fidl::encoding::ResourceDialect,
T0: fidl::encoding::Encode<Ipv6ChecksumConfiguration, D>,
> fidl::encoding::Encode<SocketSetIpv6ChecksumRequest, D> for (T0,)
{
#[inline]
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<'_, D>,
offset: usize,
depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<SocketSetIpv6ChecksumRequest>(offset);
self.0.encode(encoder, offset + 0, depth)?;
Ok(())
}
}
impl<D: fidl::encoding::ResourceDialect> fidl::encoding::Decode<Self, D>
for SocketSetIpv6ChecksumRequest
{
#[inline(always)]
fn new_empty() -> Self {
Self { config: fidl::new_empty!(Ipv6ChecksumConfiguration, D) }
}
#[inline]
unsafe fn decode(
&mut self,
decoder: &mut fidl::encoding::Decoder<'_, D>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
decoder.debug_check_bounds::<Self>(offset);
fidl::decode!(
Ipv6ChecksumConfiguration,
D,
&mut self.config,
decoder,
offset + 0,
_depth
)?;
Ok(())
}
}
impl fidl::encoding::ValueTypeMarker for SocketGetIcmpv6FilterResponse {
type Borrowed<'a> = &'a Self;
fn borrow(value: &<Self as fidl::encoding::TypeMarker>::Owned) -> Self::Borrowed<'_> {
value
}
}
unsafe impl fidl::encoding::TypeMarker for SocketGetIcmpv6FilterResponse {
type Owned = Self;
#[inline(always)]
fn inline_align(_context: fidl::encoding::Context) -> usize {
4
}
#[inline(always)]
fn inline_size(_context: fidl::encoding::Context) -> usize {
32
}
#[inline(always)]
fn encode_is_copy() -> bool {
true
}
#[inline(always)]
fn decode_is_copy() -> bool {
true
}
}
unsafe impl<D: fidl::encoding::ResourceDialect>
fidl::encoding::Encode<SocketGetIcmpv6FilterResponse, D>
for &SocketGetIcmpv6FilterResponse
{
#[inline]
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<'_, D>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<SocketGetIcmpv6FilterResponse>(offset);
unsafe {
let buf_ptr = encoder.buf.as_mut_ptr().add(offset);
(buf_ptr as *mut SocketGetIcmpv6FilterResponse)
.write_unaligned((self as *const SocketGetIcmpv6FilterResponse).read());
}
Ok(())
}
}
unsafe impl<D: fidl::encoding::ResourceDialect, T0: fidl::encoding::Encode<Icmpv6Filter, D>>
fidl::encoding::Encode<SocketGetIcmpv6FilterResponse, D> for (T0,)
{
#[inline]
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<'_, D>,
offset: usize,
depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<SocketGetIcmpv6FilterResponse>(offset);
self.0.encode(encoder, offset + 0, depth)?;
Ok(())
}
}
impl<D: fidl::encoding::ResourceDialect> fidl::encoding::Decode<Self, D>
for SocketGetIcmpv6FilterResponse
{
#[inline(always)]
fn new_empty() -> Self {
Self { filter: fidl::new_empty!(Icmpv6Filter, D) }
}
#[inline]
unsafe fn decode(
&mut self,
decoder: &mut fidl::encoding::Decoder<'_, D>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
decoder.debug_check_bounds::<Self>(offset);
let buf_ptr = unsafe { decoder.buf.as_ptr().add(offset) };
unsafe {
std::ptr::copy_nonoverlapping(buf_ptr, self as *mut Self as *mut u8, 32);
}
Ok(())
}
}
impl fidl::encoding::ValueTypeMarker for SocketGetInfoResponse {
type Borrowed<'a> = &'a Self;
fn borrow(value: &<Self as fidl::encoding::TypeMarker>::Owned) -> Self::Borrowed<'_> {
value
}
}
unsafe impl fidl::encoding::TypeMarker for SocketGetInfoResponse {
type Owned = Self;
#[inline(always)]
fn inline_align(_context: fidl::encoding::Context) -> usize {
8
}
#[inline(always)]
fn inline_size(_context: fidl::encoding::Context) -> usize {
24
}
}
unsafe impl<D: fidl::encoding::ResourceDialect> fidl::encoding::Encode<SocketGetInfoResponse, D>
for &SocketGetInfoResponse
{
#[inline]
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<'_, D>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<SocketGetInfoResponse>(offset);
fidl::encoding::Encode::<SocketGetInfoResponse, D>::encode(
(
<fidl_fuchsia_posix_socket::Domain as fidl::encoding::ValueTypeMarker>::borrow(
&self.domain,
),
<ProtocolAssociation as fidl::encoding::ValueTypeMarker>::borrow(&self.proto),
),
encoder,
offset,
_depth,
)
}
}
unsafe impl<
D: fidl::encoding::ResourceDialect,
T0: fidl::encoding::Encode<fidl_fuchsia_posix_socket::Domain, D>,
T1: fidl::encoding::Encode<ProtocolAssociation, D>,
> fidl::encoding::Encode<SocketGetInfoResponse, D> for (T0, T1)
{
#[inline]
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<'_, D>,
offset: usize,
depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<SocketGetInfoResponse>(offset);
unsafe {
let ptr = encoder.buf.as_mut_ptr().add(offset).offset(0);
(ptr as *mut u64).write_unaligned(0);
}
self.0.encode(encoder, offset + 0, depth)?;
self.1.encode(encoder, offset + 8, depth)?;
Ok(())
}
}
impl<D: fidl::encoding::ResourceDialect> fidl::encoding::Decode<Self, D> for SocketGetInfoResponse {
#[inline(always)]
fn new_empty() -> Self {
Self {
domain: fidl::new_empty!(fidl_fuchsia_posix_socket::Domain, D),
proto: fidl::new_empty!(ProtocolAssociation, D),
}
}
#[inline]
unsafe fn decode(
&mut self,
decoder: &mut fidl::encoding::Decoder<'_, D>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
decoder.debug_check_bounds::<Self>(offset);
let ptr = unsafe { decoder.buf.as_ptr().add(offset).offset(0) };
let padval = unsafe { (ptr as *const u64).read_unaligned() };
let mask = 0xffffffffffff0000u64;
let maskedval = padval & mask;
if maskedval != 0 {
return Err(fidl::Error::NonZeroPadding {
padding_start: offset + 0 + ((mask as u64).trailing_zeros() / 8) as usize,
});
}
fidl::decode!(
fidl_fuchsia_posix_socket::Domain,
D,
&mut self.domain,
decoder,
offset + 0,
_depth
)?;
fidl::decode!(ProtocolAssociation, D, &mut self.proto, decoder, offset + 8, _depth)?;
Ok(())
}
}
impl fidl::encoding::ValueTypeMarker for SocketGetIpHeaderIncludedResponse {
type Borrowed<'a> = &'a Self;
fn borrow(value: &<Self as fidl::encoding::TypeMarker>::Owned) -> Self::Borrowed<'_> {
value
}
}
unsafe impl fidl::encoding::TypeMarker for SocketGetIpHeaderIncludedResponse {
type Owned = Self;
#[inline(always)]
fn inline_align(_context: fidl::encoding::Context) -> usize {
1
}
#[inline(always)]
fn inline_size(_context: fidl::encoding::Context) -> usize {
1
}
}
unsafe impl<D: fidl::encoding::ResourceDialect>
fidl::encoding::Encode<SocketGetIpHeaderIncludedResponse, D>
for &SocketGetIpHeaderIncludedResponse
{
#[inline]
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<'_, D>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<SocketGetIpHeaderIncludedResponse>(offset);
fidl::encoding::Encode::<SocketGetIpHeaderIncludedResponse, D>::encode(
(<bool as fidl::encoding::ValueTypeMarker>::borrow(&self.value),),
encoder,
offset,
_depth,
)
}
}
unsafe impl<D: fidl::encoding::ResourceDialect, T0: fidl::encoding::Encode<bool, D>>
fidl::encoding::Encode<SocketGetIpHeaderIncludedResponse, D> for (T0,)
{
#[inline]
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<'_, D>,
offset: usize,
depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<SocketGetIpHeaderIncludedResponse>(offset);
self.0.encode(encoder, offset + 0, depth)?;
Ok(())
}
}
impl<D: fidl::encoding::ResourceDialect> fidl::encoding::Decode<Self, D>
for SocketGetIpHeaderIncludedResponse
{
#[inline(always)]
fn new_empty() -> Self {
Self { value: fidl::new_empty!(bool, D) }
}
#[inline]
unsafe fn decode(
&mut self,
decoder: &mut fidl::encoding::Decoder<'_, D>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
decoder.debug_check_bounds::<Self>(offset);
fidl::decode!(bool, D, &mut self.value, decoder, offset + 0, _depth)?;
Ok(())
}
}
impl fidl::encoding::ValueTypeMarker for SocketGetIpv6ChecksumResponse {
type Borrowed<'a> = &'a Self;
fn borrow(value: &<Self as fidl::encoding::TypeMarker>::Owned) -> Self::Borrowed<'_> {
value
}
}
unsafe impl fidl::encoding::TypeMarker for SocketGetIpv6ChecksumResponse {
type Owned = Self;
#[inline(always)]
fn inline_align(_context: fidl::encoding::Context) -> usize {
8
}
#[inline(always)]
fn inline_size(_context: fidl::encoding::Context) -> usize {
16
}
}
unsafe impl<D: fidl::encoding::ResourceDialect>
fidl::encoding::Encode<SocketGetIpv6ChecksumResponse, D>
for &SocketGetIpv6ChecksumResponse
{
#[inline]
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<'_, D>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<SocketGetIpv6ChecksumResponse>(offset);
fidl::encoding::Encode::<SocketGetIpv6ChecksumResponse, D>::encode(
(<Ipv6ChecksumConfiguration as fidl::encoding::ValueTypeMarker>::borrow(
&self.config,
),),
encoder,
offset,
_depth,
)
}
}
unsafe impl<
D: fidl::encoding::ResourceDialect,
T0: fidl::encoding::Encode<Ipv6ChecksumConfiguration, D>,
> fidl::encoding::Encode<SocketGetIpv6ChecksumResponse, D> for (T0,)
{
#[inline]
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<'_, D>,
offset: usize,
depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<SocketGetIpv6ChecksumResponse>(offset);
self.0.encode(encoder, offset + 0, depth)?;
Ok(())
}
}
impl<D: fidl::encoding::ResourceDialect> fidl::encoding::Decode<Self, D>
for SocketGetIpv6ChecksumResponse
{
#[inline(always)]
fn new_empty() -> Self {
Self { config: fidl::new_empty!(Ipv6ChecksumConfiguration, D) }
}
#[inline]
unsafe fn decode(
&mut self,
decoder: &mut fidl::encoding::Decoder<'_, D>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
decoder.debug_check_bounds::<Self>(offset);
fidl::decode!(
Ipv6ChecksumConfiguration,
D,
&mut self.config,
decoder,
offset + 0,
_depth
)?;
Ok(())
}
}
impl fidl::encoding::ValueTypeMarker for SocketRecvMsgResponse {
type Borrowed<'a> = &'a Self;
fn borrow(value: &<Self as fidl::encoding::TypeMarker>::Owned) -> Self::Borrowed<'_> {
value
}
}
unsafe impl fidl::encoding::TypeMarker for SocketRecvMsgResponse {
type Owned = Self;
#[inline(always)]
fn inline_align(_context: fidl::encoding::Context) -> usize {
8
}
#[inline(always)]
fn inline_size(_context: fidl::encoding::Context) -> usize {
56
}
}
unsafe impl<D: fidl::encoding::ResourceDialect> fidl::encoding::Encode<SocketRecvMsgResponse, D>
for &SocketRecvMsgResponse
{
#[inline]
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<'_, D>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<SocketRecvMsgResponse>(offset);
fidl::encoding::Encode::<SocketRecvMsgResponse, D>::encode(
(
<fidl::encoding::OptionalUnion<fidl_fuchsia_net::SocketAddress> as fidl::encoding::ValueTypeMarker>::borrow(&self.addr),
<fidl::encoding::UnboundedVector<u8> as fidl::encoding::ValueTypeMarker>::borrow(&self.data),
<fidl_fuchsia_posix_socket::NetworkSocketRecvControlData as fidl::encoding::ValueTypeMarker>::borrow(&self.control),
<u32 as fidl::encoding::ValueTypeMarker>::borrow(&self.truncated),
),
encoder, offset, _depth
)
}
}
unsafe impl<
D: fidl::encoding::ResourceDialect,
T0: fidl::encoding::Encode<
fidl::encoding::OptionalUnion<fidl_fuchsia_net::SocketAddress>,
D,
>,
T1: fidl::encoding::Encode<fidl::encoding::UnboundedVector<u8>, D>,
T2: fidl::encoding::Encode<fidl_fuchsia_posix_socket::NetworkSocketRecvControlData, D>,
T3: fidl::encoding::Encode<u32, D>,
> fidl::encoding::Encode<SocketRecvMsgResponse, D> for (T0, T1, T2, T3)
{
#[inline]
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<'_, D>,
offset: usize,
depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<SocketRecvMsgResponse>(offset);
unsafe {
let ptr = encoder.buf.as_mut_ptr().add(offset).offset(48);
(ptr as *mut u64).write_unaligned(0);
}
self.0.encode(encoder, offset + 0, depth)?;
self.1.encode(encoder, offset + 16, depth)?;
self.2.encode(encoder, offset + 32, depth)?;
self.3.encode(encoder, offset + 48, depth)?;
Ok(())
}
}
impl<D: fidl::encoding::ResourceDialect> fidl::encoding::Decode<Self, D> for SocketRecvMsgResponse {
#[inline(always)]
fn new_empty() -> Self {
Self {
addr: fidl::new_empty!(
fidl::encoding::OptionalUnion<fidl_fuchsia_net::SocketAddress>,
D
),
data: fidl::new_empty!(fidl::encoding::UnboundedVector<u8>, D),
control: fidl::new_empty!(
fidl_fuchsia_posix_socket::NetworkSocketRecvControlData,
D
),
truncated: fidl::new_empty!(u32, D),
}
}
#[inline]
unsafe fn decode(
&mut self,
decoder: &mut fidl::encoding::Decoder<'_, D>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
decoder.debug_check_bounds::<Self>(offset);
let ptr = unsafe { decoder.buf.as_ptr().add(offset).offset(48) };
let padval = unsafe { (ptr as *const u64).read_unaligned() };
let mask = 0xffffffff00000000u64;
let maskedval = padval & mask;
if maskedval != 0 {
return Err(fidl::Error::NonZeroPadding {
padding_start: offset + 48 + ((mask as u64).trailing_zeros() / 8) as usize,
});
}
fidl::decode!(
fidl::encoding::OptionalUnion<fidl_fuchsia_net::SocketAddress>,
D,
&mut self.addr,
decoder,
offset + 0,
_depth
)?;
fidl::decode!(
fidl::encoding::UnboundedVector<u8>,
D,
&mut self.data,
decoder,
offset + 16,
_depth
)?;
fidl::decode!(
fidl_fuchsia_posix_socket::NetworkSocketRecvControlData,
D,
&mut self.control,
decoder,
offset + 32,
_depth
)?;
fidl::decode!(u32, D, &mut self.truncated, decoder, offset + 48, _depth)?;
Ok(())
}
}
impl SocketDescribeResponse {
#[inline(always)]
fn max_ordinal_present(&self) -> u64 {
if let Some(_) = self.event {
return 1;
}
0
}
}
impl fidl::encoding::ResourceTypeMarker for SocketDescribeResponse {
type Borrowed<'a> = &'a mut Self;
fn take_or_borrow<'a>(
value: &'a mut <Self as fidl::encoding::TypeMarker>::Owned,
) -> Self::Borrowed<'a> {
value
}
}
unsafe impl fidl::encoding::TypeMarker for SocketDescribeResponse {
type Owned = Self;
#[inline(always)]
fn inline_align(_context: fidl::encoding::Context) -> usize {
8
}
#[inline(always)]
fn inline_size(_context: fidl::encoding::Context) -> usize {
16
}
}
unsafe impl
fidl::encoding::Encode<
SocketDescribeResponse,
fidl::encoding::DefaultFuchsiaResourceDialect,
> for &mut SocketDescribeResponse
{
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<
'_,
fidl::encoding::DefaultFuchsiaResourceDialect,
>,
offset: usize,
mut depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<SocketDescribeResponse>(offset);
let max_ordinal: u64 = self.max_ordinal_present();
encoder.write_num(max_ordinal, offset);
encoder.write_num(fidl::encoding::ALLOC_PRESENT_U64, offset + 8);
if max_ordinal == 0 {
return Ok(());
}
depth.increment()?;
let envelope_size = 8;
let bytes_len = max_ordinal as usize * envelope_size;
#[allow(unused_variables)]
let offset = encoder.out_of_line_offset(bytes_len);
let mut _prev_end_offset: usize = 0;
if 1 > max_ordinal {
return Ok(());
}
let cur_offset: usize = (1 - 1) * envelope_size;
encoder.padding(offset + _prev_end_offset, cur_offset - _prev_end_offset);
fidl::encoding::encode_in_envelope_optional::<
fidl::encoding::HandleType<
fidl::EventPair,
{ fidl::ObjectType::EVENTPAIR.into_raw() },
2147483648,
>,
fidl::encoding::DefaultFuchsiaResourceDialect,
>(
self.event.as_mut().map(
<fidl::encoding::HandleType<
fidl::EventPair,
{ fidl::ObjectType::EVENTPAIR.into_raw() },
2147483648,
> as fidl::encoding::ResourceTypeMarker>::take_or_borrow,
),
encoder,
offset + cur_offset,
depth,
)?;
_prev_end_offset = cur_offset + envelope_size;
Ok(())
}
}
impl fidl::encoding::Decode<Self, fidl::encoding::DefaultFuchsiaResourceDialect>
for SocketDescribeResponse
{
#[inline(always)]
fn new_empty() -> Self {
Self::default()
}
unsafe fn decode(
&mut self,
decoder: &mut fidl::encoding::Decoder<
'_,
fidl::encoding::DefaultFuchsiaResourceDialect,
>,
offset: usize,
mut depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
decoder.debug_check_bounds::<Self>(offset);
let len = match fidl::encoding::decode_vector_header(decoder, offset)? {
None => return Err(fidl::Error::NotNullable),
Some(len) => len,
};
if len == 0 {
return Ok(());
};
depth.increment()?;
let envelope_size = 8;
let bytes_len = len * envelope_size;
let offset = decoder.out_of_line_offset(bytes_len)?;
let mut _next_ordinal_to_read = 0;
let mut next_offset = offset;
let end_offset = offset + bytes_len;
_next_ordinal_to_read += 1;
if next_offset >= end_offset {
return Ok(());
}
while _next_ordinal_to_read < 1 {
fidl::encoding::decode_unknown_envelope(decoder, next_offset, depth)?;
_next_ordinal_to_read += 1;
next_offset += envelope_size;
}
let next_out_of_line = decoder.next_out_of_line();
let handles_before = decoder.remaining_handles();
if let Some((inlined, num_bytes, num_handles)) =
fidl::encoding::decode_envelope_header(decoder, next_offset)?
{
let member_inline_size = <fidl::encoding::HandleType<
fidl::EventPair,
{ fidl::ObjectType::EVENTPAIR.into_raw() },
2147483648,
> as fidl::encoding::TypeMarker>::inline_size(
decoder.context
);
if inlined != (member_inline_size <= 4) {
return Err(fidl::Error::InvalidInlineBitInEnvelope);
}
let inner_offset;
let mut inner_depth = depth.clone();
if inlined {
decoder.check_inline_envelope_padding(next_offset, member_inline_size)?;
inner_offset = next_offset;
} else {
inner_offset = decoder.out_of_line_offset(member_inline_size)?;
inner_depth.increment()?;
}
let val_ref =
self.event.get_or_insert_with(|| fidl::new_empty!(fidl::encoding::HandleType<fidl::EventPair, { fidl::ObjectType::EVENTPAIR.into_raw() }, 2147483648>, fidl::encoding::DefaultFuchsiaResourceDialect));
fidl::decode!(fidl::encoding::HandleType<fidl::EventPair, { fidl::ObjectType::EVENTPAIR.into_raw() }, 2147483648>, fidl::encoding::DefaultFuchsiaResourceDialect, val_ref, decoder, inner_offset, inner_depth)?;
if !inlined && decoder.next_out_of_line() != next_out_of_line + (num_bytes as usize)
{
return Err(fidl::Error::InvalidNumBytesInEnvelope);
}
if handles_before != decoder.remaining_handles() + (num_handles as usize) {
return Err(fidl::Error::InvalidNumHandlesInEnvelope);
}
}
next_offset += envelope_size;
while next_offset < end_offset {
_next_ordinal_to_read += 1;
fidl::encoding::decode_unknown_envelope(decoder, next_offset, depth)?;
next_offset += envelope_size;
}
Ok(())
}
}
impl fidl::encoding::ValueTypeMarker for Ipv6ChecksumConfiguration {
type Borrowed<'a> = &'a Self;
fn borrow(value: &<Self as fidl::encoding::TypeMarker>::Owned) -> Self::Borrowed<'_> {
value
}
}
unsafe impl fidl::encoding::TypeMarker for Ipv6ChecksumConfiguration {
type Owned = Self;
#[inline(always)]
fn inline_align(_context: fidl::encoding::Context) -> usize {
8
}
#[inline(always)]
fn inline_size(_context: fidl::encoding::Context) -> usize {
16
}
}
unsafe impl<D: fidl::encoding::ResourceDialect>
fidl::encoding::Encode<Ipv6ChecksumConfiguration, D> for &Ipv6ChecksumConfiguration
{
#[inline]
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<'_, D>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<Ipv6ChecksumConfiguration>(offset);
encoder.write_num::<u64>(self.ordinal(), offset);
match self {
Ipv6ChecksumConfiguration::Disabled(ref val) => {
fidl::encoding::encode_in_envelope::<Empty, D>(
<Empty as fidl::encoding::ValueTypeMarker>::borrow(val),
encoder,
offset + 8,
_depth,
)
}
Ipv6ChecksumConfiguration::Offset(ref val) => {
fidl::encoding::encode_in_envelope::<i32, D>(
<i32 as fidl::encoding::ValueTypeMarker>::borrow(val),
encoder,
offset + 8,
_depth,
)
}
}
}
}
impl<D: fidl::encoding::ResourceDialect> fidl::encoding::Decode<Self, D>
for Ipv6ChecksumConfiguration
{
#[inline(always)]
fn new_empty() -> Self {
Self::Disabled(fidl::new_empty!(Empty, D))
}
#[inline]
unsafe fn decode(
&mut self,
decoder: &mut fidl::encoding::Decoder<'_, D>,
offset: usize,
mut depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
decoder.debug_check_bounds::<Self>(offset);
#[allow(unused_variables)]
let next_out_of_line = decoder.next_out_of_line();
let handles_before = decoder.remaining_handles();
let (ordinal, inlined, num_bytes, num_handles) =
fidl::encoding::decode_union_inline_portion(decoder, offset)?;
let member_inline_size = match ordinal {
1 => <Empty as fidl::encoding::TypeMarker>::inline_size(decoder.context),
2 => <i32 as fidl::encoding::TypeMarker>::inline_size(decoder.context),
_ => return Err(fidl::Error::UnknownUnionTag),
};
if inlined != (member_inline_size <= 4) {
return Err(fidl::Error::InvalidInlineBitInEnvelope);
}
let _inner_offset;
if inlined {
decoder.check_inline_envelope_padding(offset + 8, member_inline_size)?;
_inner_offset = offset + 8;
} else {
depth.increment()?;
_inner_offset = decoder.out_of_line_offset(member_inline_size)?;
}
match ordinal {
1 => {
#[allow(irrefutable_let_patterns)]
if let Ipv6ChecksumConfiguration::Disabled(_) = self {
} else {
*self = Ipv6ChecksumConfiguration::Disabled(fidl::new_empty!(Empty, D));
}
#[allow(irrefutable_let_patterns)]
if let Ipv6ChecksumConfiguration::Disabled(ref mut val) = self {
fidl::decode!(Empty, D, val, decoder, _inner_offset, depth)?;
} else {
unreachable!()
}
}
2 => {
#[allow(irrefutable_let_patterns)]
if let Ipv6ChecksumConfiguration::Offset(_) = self {
} else {
*self = Ipv6ChecksumConfiguration::Offset(fidl::new_empty!(i32, D));
}
#[allow(irrefutable_let_patterns)]
if let Ipv6ChecksumConfiguration::Offset(ref mut val) = self {
fidl::decode!(i32, D, val, decoder, _inner_offset, depth)?;
} else {
unreachable!()
}
}
ordinal => panic!("unexpected ordinal {:?}", ordinal),
}
if !inlined && decoder.next_out_of_line() != next_out_of_line + (num_bytes as usize) {
return Err(fidl::Error::InvalidNumBytesInEnvelope);
}
if handles_before != decoder.remaining_handles() + (num_handles as usize) {
return Err(fidl::Error::InvalidNumHandlesInEnvelope);
}
Ok(())
}
}
impl fidl::encoding::ValueTypeMarker for ProtocolAssociation {
type Borrowed<'a> = &'a Self;
fn borrow(value: &<Self as fidl::encoding::TypeMarker>::Owned) -> Self::Borrowed<'_> {
value
}
}
unsafe impl fidl::encoding::TypeMarker for ProtocolAssociation {
type Owned = Self;
#[inline(always)]
fn inline_align(_context: fidl::encoding::Context) -> usize {
8
}
#[inline(always)]
fn inline_size(_context: fidl::encoding::Context) -> usize {
16
}
}
unsafe impl<D: fidl::encoding::ResourceDialect> fidl::encoding::Encode<ProtocolAssociation, D>
for &ProtocolAssociation
{
#[inline]
unsafe fn encode(
self,
encoder: &mut fidl::encoding::Encoder<'_, D>,
offset: usize,
_depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
encoder.debug_check_bounds::<ProtocolAssociation>(offset);
encoder.write_num::<u64>(self.ordinal(), offset);
match self {
ProtocolAssociation::Unassociated(ref val) => {
fidl::encoding::encode_in_envelope::<Empty, D>(
<Empty as fidl::encoding::ValueTypeMarker>::borrow(val),
encoder,
offset + 8,
_depth,
)
}
ProtocolAssociation::Associated(ref val) => {
fidl::encoding::encode_in_envelope::<u8, D>(
<u8 as fidl::encoding::ValueTypeMarker>::borrow(val),
encoder,
offset + 8,
_depth,
)
}
}
}
}
impl<D: fidl::encoding::ResourceDialect> fidl::encoding::Decode<Self, D> for ProtocolAssociation {
#[inline(always)]
fn new_empty() -> Self {
Self::Unassociated(fidl::new_empty!(Empty, D))
}
#[inline]
unsafe fn decode(
&mut self,
decoder: &mut fidl::encoding::Decoder<'_, D>,
offset: usize,
mut depth: fidl::encoding::Depth,
) -> fidl::Result<()> {
decoder.debug_check_bounds::<Self>(offset);
#[allow(unused_variables)]
let next_out_of_line = decoder.next_out_of_line();
let handles_before = decoder.remaining_handles();
let (ordinal, inlined, num_bytes, num_handles) =
fidl::encoding::decode_union_inline_portion(decoder, offset)?;
let member_inline_size = match ordinal {
1 => <Empty as fidl::encoding::TypeMarker>::inline_size(decoder.context),
2 => <u8 as fidl::encoding::TypeMarker>::inline_size(decoder.context),
_ => return Err(fidl::Error::UnknownUnionTag),
};
if inlined != (member_inline_size <= 4) {
return Err(fidl::Error::InvalidInlineBitInEnvelope);
}
let _inner_offset;
if inlined {
decoder.check_inline_envelope_padding(offset + 8, member_inline_size)?;
_inner_offset = offset + 8;
} else {
depth.increment()?;
_inner_offset = decoder.out_of_line_offset(member_inline_size)?;
}
match ordinal {
1 => {
#[allow(irrefutable_let_patterns)]
if let ProtocolAssociation::Unassociated(_) = self {
} else {
*self = ProtocolAssociation::Unassociated(fidl::new_empty!(Empty, D));
}
#[allow(irrefutable_let_patterns)]
if let ProtocolAssociation::Unassociated(ref mut val) = self {
fidl::decode!(Empty, D, val, decoder, _inner_offset, depth)?;
} else {
unreachable!()
}
}
2 => {
#[allow(irrefutable_let_patterns)]
if let ProtocolAssociation::Associated(_) = self {
} else {
*self = ProtocolAssociation::Associated(fidl::new_empty!(u8, D));
}
#[allow(irrefutable_let_patterns)]
if let ProtocolAssociation::Associated(ref mut val) = self {
fidl::decode!(u8, D, val, decoder, _inner_offset, depth)?;
} else {
unreachable!()
}
}
ordinal => panic!("unexpected ordinal {:?}", ordinal),
}
if !inlined && decoder.next_out_of_line() != next_out_of_line + (num_bytes as usize) {
return Err(fidl::Error::InvalidNumBytesInEnvelope);
}
if handles_before != decoder.remaining_handles() + (num_handles as usize) {
return Err(fidl::Error::InvalidNumHandlesInEnvelope);
}
Ok(())
}
}
}