Mercurial > crates > nonstick
comparison src/libpam/answer.rs @ 145:8f964b701652
Doc cleanup
| author | Paul Fisher <paul@pfish.zone> |
|---|---|
| date | Sun, 06 Jul 2025 19:04:57 -0400 |
| parents | ebb71a412b58 |
| children | 4b3a5095f68c |
comparison
equal
deleted
inserted
replaced
| 144:56b559b7ecea | 145:8f964b701652 |
|---|---|
| 107 #[repr(C)] | 107 #[repr(C)] |
| 108 #[derive(Debug, Default)] | 108 #[derive(Debug, Default)] |
| 109 pub struct Answer { | 109 pub struct Answer { |
| 110 /// Owned pointer to the data returned in an answer. | 110 /// Owned pointer to the data returned in an answer. |
| 111 /// For most answers, this will be a | 111 /// For most answers, this will be a |
| 112 /// [`CHeapString`](CHeapString), but for | 112 /// [`CHeapString`], but for |
| 113 /// [`BinaryQAndA`](crate::conv::BinaryQAndA)s (a Linux-PAM extension), | 113 /// [`BinaryQAndA`](crate::conv::BinaryQAndA)s (a Linux-PAM extension), |
| 114 /// this will be a [`CHeapBox`] of | 114 /// this will be a [`CHeapBox`] of [`BinaryPayload`]. |
| 115 /// [`CBinaryData`](crate::libpam::memory::CBinaryData). | |
| 116 pub data: Option<CHeapBox<c_void>>, | 115 pub data: Option<CHeapBox<c_void>>, |
| 117 /// Unused. Just here for the padding. | 116 /// Unused. Just here for the padding. |
| 118 return_code: c_int, | 117 return_code: c_int, |
| 119 _marker: Immovable, | 118 _marker: Immovable, |
| 120 } | 119 } |
| 173 } | 172 } |
| 174 } | 173 } |
| 175 } | 174 } |
| 176 } | 175 } |
| 177 | 176 |
| 178 /// A [`Answer`] with [`CBinaryData`] in it. | 177 /// A [`Answer`] with [`BinaryPayload`] in it. |
| 179 #[repr(transparent)] | 178 #[repr(transparent)] |
| 180 #[derive(Debug)] | 179 #[derive(Debug)] |
| 181 pub struct BinaryAnswer(Answer); | 180 pub struct BinaryAnswer(Answer); |
| 182 | 181 |
| 183 impl BinaryAnswer { | 182 impl BinaryAnswer { |
