pub struct SetSockOpt<'a> { /* private fields */ }Expand description
Set the socket options.
Corresponds to [io_uring_prep_setsockopt] (no docs).
Implementations§
Source§impl<'a> SetSockOpt<'a>
impl<'a> SetSockOpt<'a>
Sourcepub fn new<O: Into<AnySockOpt>>(sockfd: BorrowedUringFd<'a>, opt: O) -> Self
pub fn new<O: Into<AnySockOpt>>(sockfd: BorrowedUringFd<'a>, opt: O) -> Self
Create a new SetSockOpt operation.
Trait Implementations§
Source§impl<'a> Debug for SetSockOpt<'a>
impl<'a> Debug for SetSockOpt<'a>
Source§impl<'a> From<SetSockOpt<'a>> for AnyOp<'a>
impl<'a> From<SetSockOpt<'a>> for AnyOp<'a>
Source§fn from(op: SetSockOpt<'a>) -> Self
fn from(op: SetSockOpt<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> OpPayload for SetSockOpt<'a>
impl<'a> OpPayload for SetSockOpt<'a>
impl<'pin, 'a> Unpin for SetSockOpt<'a>where
PinnedFieldsOf<__SetSockOpt<'pin, 'a>>: Unpin,
Auto Trait Implementations§
impl<'a> Freeze for SetSockOpt<'a>
impl<'a> RefUnwindSafe for SetSockOpt<'a>
impl<'a> !Send for SetSockOpt<'a>
impl<'a> !Sync for SetSockOpt<'a>
impl<'a> UnwindSafe for SetSockOpt<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more