We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b8ad3a commit 5b89c85Copy full SHA for 5b89c85
src/sys/unix.rs
@@ -397,11 +397,13 @@ impl_debug!(
397
impl RecvFlags {
398
/// Check if the message terminates a record.
399
///
400
- /// Not all socket types support the notion of records.
401
- /// For socket types that do support it (such as [`SEQPACKET`][Type::SEQPACKET]),
402
- /// a record is terminated by sending a message with the end-of-record flag set.
+ /// Not all socket types support the notion of records. For socket types
+ /// that do support it (such as [`SEQPACKET`]), a record is terminated by
+ /// sending a message with the end-of-record flag set.
403
404
/// On Unix this corresponds to the MSG_EOR flag.
405
+ ///
406
+ /// [`SEQPACKET`]: Type::SEQPACKET
407
pub const fn is_end_of_record(self) -> bool {
408
self.0 & libc::MSG_EOR != 0
409
}
0 commit comments