Struct linux_object::net::raw::RawSocketState
source · [−]pub struct RawSocketState { /* private fields */ }
Expand description
missing documentation
Implementations
sourceimpl RawSocketState
impl RawSocketState
Trait Implementations
sourceimpl Clone for RawSocketState
impl Clone for RawSocketState
sourcefn clone(&self) -> RawSocketState
fn clone(&self) -> RawSocketState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RawSocketState
impl Debug for RawSocketState
sourceimpl Socket for RawSocketState
impl Socket for RawSocketState
missing in implementation
sourcefn read<'life0, 'life1, 'async_trait>(
&'life0 self,
data: &'life1 mut [u8]
) -> Pin<Box<dyn Future<Output = (SysResult, Endpoint)> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn read<'life0, 'life1, 'async_trait>(
&'life0 self,
data: &'life1 mut [u8]
) -> Pin<Box<dyn Future<Output = (SysResult, Endpoint)> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
missing documentation
sourcefn write(&self, data: &[u8], sendto_endpoint: Option<Endpoint>) -> SysResult
fn write(&self, data: &[u8], sendto_endpoint: Option<Endpoint>) -> SysResult
missing documentation
sourcefn connect<'life0, 'async_trait>(
&'life0 self,
_endpoint: Endpoint
) -> Pin<Box<dyn Future<Output = SysResult> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn connect<'life0, 'async_trait>(
&'life0 self,
_endpoint: Endpoint
) -> Pin<Box<dyn Future<Output = SysResult> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
missing documentation
sourcefn setsockopt(&self, _level: usize, _opt: usize, _data: &[u8]) -> SysResult
fn setsockopt(&self, _level: usize, _opt: usize, _data: &[u8]) -> SysResult
missing documentation
sourcefn get_buffer_capacity(&self) -> Option<(usize, usize)>
fn get_buffer_capacity(&self) -> Option<(usize, usize)>
Get Socket recv and send buffer capacity
sourcefn socket_type(&self) -> Option<SocketType>
fn socket_type(&self) -> Option<SocketType>
Get Socket Type
sourcefn poll(&self, _events: PollEvents) -> (bool, bool, bool)
fn poll(&self, _events: PollEvents) -> (bool, bool, bool)
wait for some event (in, out, err) on a fd
sourcefn accept<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = LxResult<(Arc<dyn FileLike>, Endpoint)>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn accept<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = LxResult<(Arc<dyn FileLike>, Endpoint)>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
missing documentation
sourcefn remote_endpoint(&self) -> Option<Endpoint>
fn remote_endpoint(&self) -> Option<Endpoint>
missing documentation
Auto Trait Implementations
impl RefUnwindSafe for RawSocketState
impl Send for RawSocketState
impl Sync for RawSocketState
impl Unpin for RawSocketState
impl UnwindSafe for RawSocketState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CheckedAs for T
impl<T> CheckedAs for T
sourcefn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> CheckedCastFrom<Src> for Dst where
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dst where
Src: CheckedCast<Dst>,
sourcefn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
sourceimpl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
sourcefn into_result(self) -> Result<T, ZxError>
fn into_result(self) -> Result<T, ZxError>
Performs the conversion.
sourceimpl<T> OverflowingAs for T
impl<T> OverflowingAs for T
sourcefn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> OverflowingCastFrom<Src> for Dst where
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dst where
Src: OverflowingCast<Dst>,
sourcefn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
sourceimpl<T> SaturatingAs for T
impl<T> SaturatingAs for T
sourcefn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> SaturatingCastFrom<Src> for Dst where
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dst where
Src: SaturatingCast<Dst>,
sourcefn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
sourceimpl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
sourcefn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> UnwrappedCastFrom<Src> for Dst where
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dst where
Src: UnwrappedCast<Dst>,
sourcefn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
sourceimpl<T> WrappingAs for T
impl<T> WrappingAs for T
sourcefn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> WrappingCastFrom<Src> for Dst where
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dst where
Src: WrappingCast<Dst>,
sourcefn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.