Enum rustix::net::SendAncillaryMessage
source · #[non_exhaustive]pub enum SendAncillaryMessage<'slice, 'fd> {
ScmRights(&'slice [BorrowedFd<'fd>]),
ScmCredentials(UCred),
}
Expand description
Ancillary message for sendmsg
, sendmsg_v4
, sendmsg_v6
,
sendmsg_unix
, and sendmsg_any
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ScmRights(&'slice [BorrowedFd<'fd>])
Send file descriptors.
ScmCredentials(UCred)
Send process credentials.
Implementations§
Trait Implementations§
source§impl<'slice, 'fd> Extend<SendAncillaryMessage<'slice, 'fd>> for SendAncillaryBuffer<'_, 'slice, 'fd>
impl<'slice, 'fd> Extend<SendAncillaryMessage<'slice, 'fd>> for SendAncillaryBuffer<'_, 'slice, 'fd>
source§fn extend<T: IntoIterator<Item = SendAncillaryMessage<'slice, 'fd>>>(
&mut self,
iter: T,
)
fn extend<T: IntoIterator<Item = SendAncillaryMessage<'slice, 'fd>>>( &mut self, iter: T, )
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Auto Trait Implementations§
impl<'slice, 'fd> Freeze for SendAncillaryMessage<'slice, 'fd>
impl<'slice, 'fd> RefUnwindSafe for SendAncillaryMessage<'slice, 'fd>
impl<'slice, 'fd> Send for SendAncillaryMessage<'slice, 'fd>
impl<'slice, 'fd> Sync for SendAncillaryMessage<'slice, 'fd>
impl<'slice, 'fd> Unpin for SendAncillaryMessage<'slice, 'fd>
impl<'slice, 'fd> UnwindSafe for SendAncillaryMessage<'slice, 'fd>
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