Merge pull request #251 from bitfehler/bitfehler/pub-parse

Un-export some exposed `parse()` functions
This commit is contained in:
Jon Gjengset 2023-01-16 14:19:57 -08:00 committed by GitHub
commit e9041480e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View file

@ -115,7 +115,7 @@ pub struct AclResponse {
impl AclResponse {
/// Parse the given input into a [`Acl`] response.
pub fn parse(
pub(crate) fn parse(
owned: Vec<u8>,
unsolicited: &mut mpsc::Sender<UnsolicitedResponse>,
) -> Result<Self, Error> {
@ -198,7 +198,7 @@ pub struct ListRightsResponse {
impl ListRightsResponse {
/// Parse the given input into a [`ListRights`] response.
pub fn parse(
pub(crate) fn parse(
owned: Vec<u8>,
unsolicited: &mut mpsc::Sender<UnsolicitedResponse>,
) -> Result<Self, Error> {
@ -278,7 +278,7 @@ pub struct MyRightsResponse {
impl MyRightsResponse {
/// Parse the given input into a [`MyRights`] response.
pub fn parse(
pub(crate) fn parse(
owned: Vec<u8>,
unsolicited: &mut mpsc::Sender<UnsolicitedResponse>,
) -> Result<Self, Error> {

View file

@ -45,7 +45,7 @@ pub struct Capabilities {
impl Capabilities {
/// Parse the given input into one or more [`Capabilitity`] responses.
pub fn parse(
pub(crate) fn parse(
owned: Vec<u8>,
unsolicited: &mut mpsc::Sender<UnsolicitedResponse>,
) -> Result<Self, Error> {

View file

@ -26,7 +26,7 @@ pub struct Fetches {
impl Fetches {
/// Parse one or more [`Fetch`] responses from a response buffer.
pub fn parse(
pub(crate) fn parse(
owned: Vec<u8>,
unsolicited: &mut mpsc::Sender<UnsolicitedResponse>,
) -> Result<Self, Error> {

View file

@ -18,7 +18,7 @@ pub struct Names {
impl Names {
/// Parse one or more [`Name`] from a response buffer
pub fn parse(
pub(crate) fn parse(
owned: Vec<u8>,
unsolicited: &mut mpsc::Sender<UnsolicitedResponse>,
) -> Result<Self, Error> {