pub enum BaseSocketRequest {
Show 29 variants Clone2 { request: ServerEnd<CloneableMarker>, control_handle: BaseSocketControlHandle, }, Close { responder: BaseSocketCloseResponder, }, Query { responder: BaseSocketQueryResponder, }, SetReuseAddress { value: bool, responder: BaseSocketSetReuseAddressResponder, }, GetReuseAddress { responder: BaseSocketGetReuseAddressResponder, }, GetError { responder: BaseSocketGetErrorResponder, }, SetBroadcast { value: bool, responder: BaseSocketSetBroadcastResponder, }, GetBroadcast { responder: BaseSocketGetBroadcastResponder, }, SetSendBuffer { value_bytes: u64, responder: BaseSocketSetSendBufferResponder, }, GetSendBuffer { responder: BaseSocketGetSendBufferResponder, }, SetReceiveBuffer { value_bytes: u64, responder: BaseSocketSetReceiveBufferResponder, }, GetReceiveBuffer { responder: BaseSocketGetReceiveBufferResponder, }, SetKeepAlive { value: bool, responder: BaseSocketSetKeepAliveResponder, }, GetKeepAlive { responder: BaseSocketGetKeepAliveResponder, }, SetOutOfBandInline { value: bool, responder: BaseSocketSetOutOfBandInlineResponder, }, GetOutOfBandInline { responder: BaseSocketGetOutOfBandInlineResponder, }, SetNoCheck { value: bool, responder: BaseSocketSetNoCheckResponder, }, GetNoCheck { responder: BaseSocketGetNoCheckResponder, }, SetLinger { linger: bool, length_secs: u32, responder: BaseSocketSetLingerResponder, }, GetLinger { responder: BaseSocketGetLingerResponder, }, SetReusePort { value: bool, responder: BaseSocketSetReusePortResponder, }, GetReusePort { responder: BaseSocketGetReusePortResponder, }, GetAcceptConn { responder: BaseSocketGetAcceptConnResponder, }, SetBindToDevice { value: String, responder: BaseSocketSetBindToDeviceResponder, }, GetBindToDevice { responder: BaseSocketGetBindToDeviceResponder, }, SetBindToInterfaceIndex { value: u64, responder: BaseSocketSetBindToInterfaceIndexResponder, }, GetBindToInterfaceIndex { responder: BaseSocketGetBindToInterfaceIndexResponder, }, SetTimestamp { value: TimestampOption, responder: BaseSocketSetTimestampResponder, }, GetTimestamp { responder: BaseSocketGetTimestampResponder, },
}
Expand description

A socket.

Variants§

§

Clone2

Fields

§request: ServerEnd<CloneableMarker>
§

Close

Terminates the connection.

After calling Close, the client must not send any other requests.

Servers, after sending the status response, should close the connection regardless of status and without sending an epitaph.

Closing the client end of the channel should be semantically equivalent to calling Close without knowing when the close has completed or its status.

§

Query

§

SetReuseAddress

Set SOL_SOCKET -> SO_REUSEADDR.

§

GetReuseAddress

Get SOL_SOCKET -> SO_REUSEADDR.

§

GetError

Get SOL_SOCKET -> SO_ERROR. Returns the last error if there is an error set on the socket.

§

SetBroadcast

Set SOL_SOCKET -> SO_BROADCAST.

§

GetBroadcast

Get SOL_SOCKET -> SO_BROADCAST.

§

SetSendBuffer

Set SOL_SOCKET -> SO_SNDBUF.

Fields

§value_bytes: u64
§

GetSendBuffer

Get SOL_SOCKET -> SO_SNDBUF.

§

SetReceiveBuffer

Set SOL_SOCKET -> SO_RCVBUF.

Fields

§value_bytes: u64
§

GetReceiveBuffer

Get SOL_SOCKET -> SO_RCVBUF.

§

SetKeepAlive

Set SOL_SOCKET -> SO_KEEPALIVE.

§

GetKeepAlive

Get SOL_SOCKET -> SO_KEEPALIVE.

§

SetOutOfBandInline

Set SOL_SOCKET -> SO_OOBINLINE.

§

GetOutOfBandInline

Get SOL_SOCKET -> SO_OOBINLINE.

§

SetNoCheck

Set SOL_SOCKET -> SO_NO_CHECK.

§

GetNoCheck

Get SOL_SOCKET -> SO_NO_CHECK.

§

SetLinger

Set SOL_SOCKET -> SO_LINGER.

Fields

§linger: bool
§length_secs: u32
§

GetLinger

Get SOL_SOCKET -> SO_LINGER.

§

SetReusePort

Set SOL_SOCKET -> SO_REUSEPORT.

§

GetReusePort

Get SOL_SOCKET -> SO_REUSEPORT.

§

GetAcceptConn

Get SOL_SOCKET -> SO_ACCEPTCONN.

§

SetBindToDevice

Set SOL_SOCKET -> SO_BINDTODEVICE.

§

GetBindToDevice

Get SOL_SOCKET -> SO_BINDTODEVICE.

§

SetBindToInterfaceIndex

Set SOL_SOCKET -> SO_BINDTOIFINDEX. If value is 0, this clears the bound interface.

§

GetBindToInterfaceIndex

Get SOL_SOCKET -> SO_BINDTOIFINDEX.

§

SetTimestamp

Set SOL_SOCKET -> SO_TIMESTAMP or SO_TIMESTAMPNS.

§

GetTimestamp

Get SOL_SOCKET -> SO_TIMESTAMP or SO_TIMESTAMPNS.

Implementations§

source§

impl BaseSocketRequest

source

pub fn into_clone2( self ) -> Option<(ServerEnd<CloneableMarker>, BaseSocketControlHandle)>

source

pub fn into_close(self) -> Option<BaseSocketCloseResponder>

source

pub fn into_query(self) -> Option<BaseSocketQueryResponder>

source

pub fn into_set_reuse_address( self ) -> Option<(bool, BaseSocketSetReuseAddressResponder)>

source

pub fn into_get_reuse_address( self ) -> Option<BaseSocketGetReuseAddressResponder>

source

pub fn into_get_error(self) -> Option<BaseSocketGetErrorResponder>

source

pub fn into_set_broadcast( self ) -> Option<(bool, BaseSocketSetBroadcastResponder)>

source

pub fn into_get_broadcast(self) -> Option<BaseSocketGetBroadcastResponder>

source

pub fn into_set_send_buffer( self ) -> Option<(u64, BaseSocketSetSendBufferResponder)>

source

pub fn into_get_send_buffer(self) -> Option<BaseSocketGetSendBufferResponder>

source

pub fn into_set_receive_buffer( self ) -> Option<(u64, BaseSocketSetReceiveBufferResponder)>

source

pub fn into_get_receive_buffer( self ) -> Option<BaseSocketGetReceiveBufferResponder>

source

pub fn into_set_keep_alive( self ) -> Option<(bool, BaseSocketSetKeepAliveResponder)>

source

pub fn into_get_keep_alive(self) -> Option<BaseSocketGetKeepAliveResponder>

source

pub fn into_set_out_of_band_inline( self ) -> Option<(bool, BaseSocketSetOutOfBandInlineResponder)>

source

pub fn into_get_out_of_band_inline( self ) -> Option<BaseSocketGetOutOfBandInlineResponder>

source

pub fn into_set_no_check(self) -> Option<(bool, BaseSocketSetNoCheckResponder)>

source

pub fn into_get_no_check(self) -> Option<BaseSocketGetNoCheckResponder>

source

pub fn into_set_linger( self ) -> Option<(bool, u32, BaseSocketSetLingerResponder)>

source

pub fn into_get_linger(self) -> Option<BaseSocketGetLingerResponder>

source

pub fn into_set_reuse_port( self ) -> Option<(bool, BaseSocketSetReusePortResponder)>

source

pub fn into_get_reuse_port(self) -> Option<BaseSocketGetReusePortResponder>

source

pub fn into_get_accept_conn(self) -> Option<BaseSocketGetAcceptConnResponder>

source

pub fn into_set_bind_to_device( self ) -> Option<(String, BaseSocketSetBindToDeviceResponder)>

source

pub fn into_get_bind_to_device( self ) -> Option<BaseSocketGetBindToDeviceResponder>

source

pub fn into_set_bind_to_interface_index( self ) -> Option<(u64, BaseSocketSetBindToInterfaceIndexResponder)>

source

pub fn into_get_bind_to_interface_index( self ) -> Option<BaseSocketGetBindToInterfaceIndexResponder>

source

pub fn into_set_timestamp( self ) -> Option<(TimestampOption, BaseSocketSetTimestampResponder)>

source

pub fn into_get_timestamp(self) -> Option<BaseSocketGetTimestampResponder>

source

pub fn method_name(&self) -> &'static str

Name of the method defined in FIDL

Trait Implementations§

source§

impl Debug for BaseSocketRequest

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Encode<Ambiguous1> for T

§

unsafe fn encode( self, _encoder: &mut Encoder<'_>, _offset: usize, _depth: Depth ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
§

impl<T> Encode<Ambiguous2> for T

§

unsafe fn encode( self, _encoder: &mut Encoder<'_>, _offset: usize, _depth: Depth ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more