pub fn can_fit_any_data(&self, size: usize) -> bool {
        let data_length = match self {
            UnixControlData::Rights(_files) => std::mem::size_of::<FdNumber>(),
            UnixControlData::Credentials(_credentials) => std::mem::size_of::<ucred>(),
            UnixControlData::Security(string) => string.len(),
        };
        data_length + cmsghdr::header_length() <= size
    }
/// Returns true iff the `size` is large enough to fit the message's header as well as *any*
/// amount of its data.
///
/// For example, when this message contains file descriptors, this will return true as long as
/// `size` can fit both the header and at least one file descriptor.
Returns true iff the `size` is large enough to fit the message's header as well as *any
amount of its data.

For example, when this message contains file descriptors, this will return true as long as
`size` can fit both the header and at least one file descriptor.
Returns true iff the ` size ` is large enough to fit the message ' s header as well as * any amount of its data . For example when this message contains file descriptors this will return true as long as ` size ` can fit both the header and at least one file descriptor .
pub fn can_fit_any_data(&self, size: usize) -> bool {
        let data_length = match self {
            UnixControlData::Rights(_files) => std::mem::size_of::<FdNumber>(),
            UnixControlData::Credentials(_credentials) => std::mem::size_of::<ucred>(),
            UnixControlData::Security(string) => string.len(),
        };
        data_length + cmsghdr::header_length() <= size
    }
pub fn can_fit_any_data ( & self , size : usize ) -> bool { let data_length = match self { UnixControlData :: Rights ( _files ) => std :: mem :: size_of :: < FdNumber > ( ) , UnixControlData :: Credentials ( _credentials ) => std :: mem :: size_of :: < ucred > ( ) , UnixControlData :: Security ( string ) => string . len ( ) , } ; data_length + cmsghdr :: header_length ( ) <= size }
Returns true iff the `size` is large enough to fit the message's header as well as *any
amount of its data.
Returns true iff the ` size ` is large enough to fit the message ' s header as well as * any amount of its data .
&self
size
usize
&self
size
usize