Merge pull request #251 from bitfehler/bitfehler/pub-parse
Un-export some exposed `parse()` functions
This commit is contained in:
commit
e9041480e3
4 changed files with 6 additions and 6 deletions
|
|
@ -115,7 +115,7 @@ pub struct AclResponse {
|
||||||
|
|
||||||
impl AclResponse {
|
impl AclResponse {
|
||||||
/// Parse the given input into a [`Acl`] response.
|
/// Parse the given input into a [`Acl`] response.
|
||||||
pub fn parse(
|
pub(crate) fn parse(
|
||||||
owned: Vec<u8>,
|
owned: Vec<u8>,
|
||||||
unsolicited: &mut mpsc::Sender<UnsolicitedResponse>,
|
unsolicited: &mut mpsc::Sender<UnsolicitedResponse>,
|
||||||
) -> Result<Self, Error> {
|
) -> Result<Self, Error> {
|
||||||
|
|
@ -198,7 +198,7 @@ pub struct ListRightsResponse {
|
||||||
|
|
||||||
impl ListRightsResponse {
|
impl ListRightsResponse {
|
||||||
/// Parse the given input into a [`ListRights`] response.
|
/// Parse the given input into a [`ListRights`] response.
|
||||||
pub fn parse(
|
pub(crate) fn parse(
|
||||||
owned: Vec<u8>,
|
owned: Vec<u8>,
|
||||||
unsolicited: &mut mpsc::Sender<UnsolicitedResponse>,
|
unsolicited: &mut mpsc::Sender<UnsolicitedResponse>,
|
||||||
) -> Result<Self, Error> {
|
) -> Result<Self, Error> {
|
||||||
|
|
@ -278,7 +278,7 @@ pub struct MyRightsResponse {
|
||||||
|
|
||||||
impl MyRightsResponse {
|
impl MyRightsResponse {
|
||||||
/// Parse the given input into a [`MyRights`] response.
|
/// Parse the given input into a [`MyRights`] response.
|
||||||
pub fn parse(
|
pub(crate) fn parse(
|
||||||
owned: Vec<u8>,
|
owned: Vec<u8>,
|
||||||
unsolicited: &mut mpsc::Sender<UnsolicitedResponse>,
|
unsolicited: &mut mpsc::Sender<UnsolicitedResponse>,
|
||||||
) -> Result<Self, Error> {
|
) -> Result<Self, Error> {
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ pub struct Capabilities {
|
||||||
|
|
||||||
impl Capabilities {
|
impl Capabilities {
|
||||||
/// Parse the given input into one or more [`Capabilitity`] responses.
|
/// Parse the given input into one or more [`Capabilitity`] responses.
|
||||||
pub fn parse(
|
pub(crate) fn parse(
|
||||||
owned: Vec<u8>,
|
owned: Vec<u8>,
|
||||||
unsolicited: &mut mpsc::Sender<UnsolicitedResponse>,
|
unsolicited: &mut mpsc::Sender<UnsolicitedResponse>,
|
||||||
) -> Result<Self, Error> {
|
) -> Result<Self, Error> {
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ pub struct Fetches {
|
||||||
|
|
||||||
impl Fetches {
|
impl Fetches {
|
||||||
/// Parse one or more [`Fetch`] responses from a response buffer.
|
/// Parse one or more [`Fetch`] responses from a response buffer.
|
||||||
pub fn parse(
|
pub(crate) fn parse(
|
||||||
owned: Vec<u8>,
|
owned: Vec<u8>,
|
||||||
unsolicited: &mut mpsc::Sender<UnsolicitedResponse>,
|
unsolicited: &mut mpsc::Sender<UnsolicitedResponse>,
|
||||||
) -> Result<Self, Error> {
|
) -> Result<Self, Error> {
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ pub struct Names {
|
||||||
|
|
||||||
impl Names {
|
impl Names {
|
||||||
/// Parse one or more [`Name`] from a response buffer
|
/// Parse one or more [`Name`] from a response buffer
|
||||||
pub fn parse(
|
pub(crate) fn parse(
|
||||||
owned: Vec<u8>,
|
owned: Vec<u8>,
|
||||||
unsolicited: &mut mpsc::Sender<UnsolicitedResponse>,
|
unsolicited: &mut mpsc::Sender<UnsolicitedResponse>,
|
||||||
) -> Result<Self, Error> {
|
) -> Result<Self, Error> {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue